|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.VarBindAndFailure
public class VarBindAndFailure
This class contains the VarBind and errstat value.
Takes care of v1 and v2c differences which are necessary.
API Users would need this class when spcifying error conditions to AdventNet extensible agent.
SnmpVarBind| Field Summary | |
|---|---|
(package private) SnmpVarBind |
varbind
|
| Constructor Summary | |
|---|---|
VarBindAndFailure()
|
|
VarBindAndFailure(AgentSnmpException ae,
int index)
Constructor for VarBindAndFailure |
|
VarBindAndFailure(int errIndex,
byte errstat,
byte errvalue)
Constructor for VarBindAndFailure |
|
| Method Summary | |
|---|---|
(package private) void |
fillVarBindIndex(SnmpVarBind varbind,
int version)
Used by classes internal to the agent library to generate the varbindIndex for V2c (noSuchObject , noSuchInstance and endOfMibView) |
int |
getErrindex()
Sets the index of the VarBind in the PduRequestEvent which has been the cause of failure |
byte |
getErrstat()
Get the errstat value |
byte |
getErrvalue()
Get the error value associated with the varbind. |
void |
setErrindex(int index)
Sets the index of the VarBind in the PduRequestEvent which has been the cause of failure |
void |
setErrstat(byte err)
Sets the errstat value (the cause of error) |
void |
setErrvalue(byte errvalue)
Set the error value associated with the varbind. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
SnmpVarBind varbind
| Constructor Detail |
|---|
public VarBindAndFailure(int errIndex,
byte errstat,
byte errvalue)
int - errIndex index in the PduRequestEvent varbindListint - errstat valueerrvalue - to be set in case of V2c
public VarBindAndFailure(AgentSnmpException ae,
int index)
ae - the AgentSnmpExceptionindex - the varbind index causes error/failureVarBindAndFailure()
| Method Detail |
|---|
public void setErrstat(byte err)
err - The error status value.SnmpAPI,
getErrstat()public byte getErrstat()
SnmpAPI,
setErrstat(byte)public byte getErrvalue()
setErrvalue(byte)public void setErrvalue(byte errvalue)
errvalue - The value of the error.getErrvalue()public void setErrindex(int index)
index - the Error index to be setSnmpVarBind,
getErrindex()public int getErrindex()
SnmpVarBind,
setErrindex(int)
void fillVarBindIndex(SnmpVarBind varbind,
int version)
varbind - SnmpVarBind which is failedversion - of the pdu
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||