|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.SnmpVarBind
public class SnmpVarBind
Class of SNMP Variable Binding. It contains an object identifier and an SnmpVar.
| Field Summary | |
|---|---|
(package private) SnmpOID |
oid
The object identifier in the SnmpVarBind, not instantiated automatically. |
(package private) int |
varbindErrindex
To store the exception value in the v2c agent's response pdu. |
(package private) SnmpVar |
variable
The SnmpVar, which is not instantiated automatically. |
| Constructor Summary | |
|---|---|
SnmpVarBind()
Empty Constructor |
|
SnmpVarBind(SnmpOID objectID,
SnmpVar var)
Create the variable binding with given Object ID and Variable |
|
| Method Summary | |
|---|---|
(package private) int |
encode(byte[] buff,
int space)
ASN encoder |
boolean |
equals(java.lang.Object obj)
Returns true if this SnmpVarBind object and the incoming SnmpVarBind object are same in their contents and false otherwise. |
int |
getErrindex()
Return error in variable binding in response pdu. |
SnmpOID |
getObjectID()
Return the object identifier in the SnmpVarBind. |
SnmpVar |
getVariable()
Return the variable in the SnmpVarBind. |
void |
setObjectID(SnmpOID objectId)
Sets the object identifier in the SnmpVarBind. |
void |
setVariable(SnmpVar var)
Sets the variable in the SnmpVarBind. |
java.lang.String |
toString()
To convert the VarBind to a printable string Object ID: value |
java.lang.String |
toTagString()
To convert the VarBind to a printable string on two lines, the first with Object ID: oid and the second with TYPE: value |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
SnmpOID oid
SnmpVar variable
int varbindErrindex
| Constructor Detail |
|---|
SnmpVarBind()
public SnmpVarBind(SnmpOID objectID,
SnmpVar var)
| Method Detail |
|---|
public SnmpOID getObjectID()
public void setObjectID(SnmpOID objectId)
public SnmpVar getVariable()
public void setVariable(SnmpVar var)
public int getErrindex()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toTagString()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
int encode(byte[] buff,
int space)
throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||