|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.beans.SnmpResultObject
public class SnmpResultObject
This class contains methods to get all valid and errored responses. This also has method to get the status of the SNMP request made (ie) whether the varbinds in the request sent were all correct (SUCCESS) or all errored (NOSUCCESS) or a mixed of both (PARTIAL).
| Field Summary | |
|---|---|
static int |
NOSUCCESS
|
static int |
PARTIAL
|
static int |
SUCCESS
|
| Constructor Summary | |
|---|---|
SnmpResultObject()
Default Constructor |
|
| Method Summary | |
|---|---|
java.util.Hashtable |
getErrorResult()
This will return a Hashtable which will contain a list of elements corresponding to the errored varbinds. |
java.util.Vector |
getResult()
This will return a Vector of successful operation string values. |
int |
getSuccessCode()
This method will get the success code of this ResultObject. |
(package private) void |
setErrorResult(java.util.Hashtable errTable)
Puts a new entry in the hashtable. |
(package private) void |
setResult(java.util.Vector resultVector)
This will add the given successful operation string to the vector. |
(package private) void |
setSuccessCode(int successCode)
This method will set the success code on this ResultObject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int SUCCESS
public static int PARTIAL
public static int NOSUCCESS
| Constructor Detail |
|---|
SnmpResultObject()
| Method Detail |
|---|
void setSuccessCode(int successCode)
successCode - The value to be set which can be any one
of SUCCESS , PARTIAL , NOSUCCESS .public int getSuccessCode()
public java.util.Vector getResult()
void setResult(java.util.Vector resultVector)
resultVector - A Vector of elements containing the successful
response strings of the form oid : value.public java.util.Hashtable getErrorResult()
void setErrorResult(java.util.Hashtable errTable)
errorTable - containing the key as the index where the errored varbind is in
the varbind list and value as the corresponding error code.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||