|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.snmputils.VariableBinding
I am an abstract class for handling variable bindings within an SNMP PDU.
Field Summary | |
---|---|
protected java.lang.String |
oid
This holds an OID describing this particular variable binding. |
Constructor Summary | |
---|---|
VariableBinding()
|
Method Summary | |
---|---|
abstract void |
addToPdu(SNMPPDU pdu)
This inserts the variable binding into the SNMPPDU. |
static int |
getMIBType()
This gets the MIB type for a particular kind of variable binding. |
java.lang.String |
getOid()
This returns the OID associated with the variable binding. |
static int |
getType()
This gets the SNMPPDU type for a particular kind of variable binding. |
abstract java.lang.Object |
getValueAsObject()
Returns the value for this variable binding as an Object |
void |
setOid(java.lang.String oid)
This sets the OID associated with the variable binding. |
int |
size()
This method returns the size of the variable binding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String oid
Constructor Detail |
public VariableBinding()
Method Detail |
public java.lang.String getOid()
public void setOid(java.lang.String oid)
oid
- a string representing the OIDpublic static int getType()
public static int getMIBType()
public abstract java.lang.Object getValueAsObject()
public abstract void addToPdu(SNMPPDU pdu)
pdu
- public int size()
return super.size() + [your calculations here]
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |