|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.snmputils.VariableBinding
com.tivoli.twg.snmputils.CounterVbl
Counter variable binding.
Field Summary | |
---|---|
static long |
MAX_VALUE
|
static long |
MIN_VALUE
|
Fields inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
oid |
Constructor Summary | |
---|---|
CounterVbl(java.lang.String oid,
long value)
Constructor using primitive type for value |
|
CounterVbl(java.lang.String oid,
java.lang.Long valueObject)
Constructor using object type for value |
Method Summary | |
---|---|
void |
addToPdu(SNMPPDU pdu)
Adds the variable binding to the specified PDU |
static int |
getMIBType()
Describes the type of MIB I represent. |
static int |
getType()
Describes the type of variable binding I represent. |
long |
getValue()
Returns the value for this variable binding as a primitive |
java.lang.Object |
getValueAsObject()
Returns the value for this variable binding as an Object |
int |
size()
Returns the size of the variable binding |
Methods inherited from class com.tivoli.twg.snmputils.VariableBinding |
---|
getOid, setOid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long MIN_VALUE
public static final long MAX_VALUE
Constructor Detail |
public CounterVbl(java.lang.String oid, long value) throws java.lang.NumberFormatException
oid
- string for the OID of this variable bindingvalue
- a long to create a VariableBinding for.
java.lang.NumberFormatException
- if value not in rangepublic CounterVbl(java.lang.String oid, java.lang.Long valueObject) throws java.lang.NumberFormatException
oid
- string for the OID of this variable bindingvalueObject
- a Long to create a VariableBinding for
java.lang.NumberFormatException
- if value not in rangeMethod Detail |
public static int getType()
SNMPPDU
public static int getMIBType()
TWGMIBItem2
public long getValue()
public java.lang.Object getValueAsObject()
getValueAsObject
in class VariableBinding
public void addToPdu(SNMPPDU pdu)
addToPdu
in class VariableBinding
pdu
- SNMPPDU to add variable binding topublic int size()
size
in class VariableBinding
VariableBinding
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |