|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.snmp.SnmpVarBind
This class represents Snmp Variable binding object.
Field Summary | |
protected SnmpOID |
_name
The object identifier that uniquely identifies the "value". |
protected SnmpDataType |
_value
The actual value object associated with the object identifier. |
Fields inherited from interface com.ireasoning.protocol.snmp.SnmpDataType |
BITS, BITSTRING, COUNTER32, COUNTER64, END_OF_MIB_VIEW, END_OF_MIB_VIEW_OBJECT, GAUGE32, INTEGER, IPADDRESS, NO_SUCH_INSTANCE, NO_SUCH_INSTANCE_OBJECT, NO_SUCH_OBJECT, NO_SUCH_OBJECT_OBJECT, NULL, OCTETSTRING, OID, OPAQUE, PDU, SEQUENCE, SEQUENCEOF, serialVersionUID, TIMETICKS, UNSIGNED32, VARBIND |
Fields inherited from interface com.ireasoning.protocol.Msg |
ERROR_TYPE |
Constructor Summary | |
SnmpVarBind()
Default constructor |
|
SnmpVarBind(SnmpOID name)
Constructs an SnmpVarBind object with passed SnmpOID object |
|
SnmpVarBind(SnmpOID name,
SnmpDataType value)
Constructs an SnmpVarBind object with passed SnmpOID, SnmpDataType objects |
|
SnmpVarBind(SnmpVarBind vb)
Makes a copy of passed SnmpVarBind object |
|
SnmpVarBind(String name)
Constructs an SnmpVarBind object with passed SnmpOID, SnmpDataType objects |
|
SnmpVarBind(String name,
SnmpDataType value)
Constructs an SnmpVarBind object with passed SnmpOID, SnmpDataType objects |
Method Summary | |
SnmpDataType |
copy()
Makes a copy of itself |
int |
encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
For internal use |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
SnmpOID |
getName()
Returns name. |
int |
getType()
Returns SnmpDataType.VARBIND |
String |
getTypeString()
Returns "VarBind" |
SnmpDataType |
getValue()
|
int |
hashCode()
Returns a hash code value for the object |
void |
setName(SnmpOID name)
Sets a new oid |
void |
setName(String name)
Sets a new oid |
void |
setValue(SnmpDataType value)
Sets a new value |
String |
toString()
Returns a string representation in following format: |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected SnmpOID _name
protected SnmpDataType _value
Constructor Detail |
public SnmpVarBind()
public SnmpVarBind(SnmpOID name)
name
- oid of this objectpublic SnmpVarBind(String name, SnmpDataType value)
name
- oid of this objectvalue
- the value corresponding to the namepublic SnmpVarBind(SnmpOID name, SnmpDataType value)
name
- oid of this objectvalue
- the value corresponding to the namepublic SnmpVarBind(String name)
name
- oid of this objectpublic SnmpVarBind(SnmpVarBind vb)
Method Detail |
public SnmpOID getName()
public void setName(SnmpOID name)
public void setName(String name)
public SnmpDataType getValue()
public void setValue(SnmpDataType value)
public int getType()
getType
in interface SnmpDataType
public String getTypeString()
getTypeString
in interface SnmpDataType
public String toString()
Variable: OID Value (Data type): value
public SnmpDataType copy()
SnmpDataType
copy
in interface SnmpDataType
public int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder) throws SnmpEncodingException
SnmpDataType
encode
in interface SnmpDataType
SnmpEncodingException
public boolean equals(Object obj)
SnmpDataType
equals
in interface SnmpDataType
public int hashCode()
SnmpDataType
hashCode
in interface SnmpDataType
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |