|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.SnmpVar | +--com.adventnet.snmp.snmp2.SnmpUnsignedInt | +--com.adventnet.snmp.snmp2.SnmpCounter
Class of SNMP Counter Variable - Sub-class of SnmpUnsignedInt.
Constructor Summary | |
SnmpCounter(long s)
Constructor requires a long as its argument. |
Method Summary | |
long |
getIncrement(long lastValue)
Gets the (positive) increment of this Counter variable over a long. |
long |
getIncrement(SnmpCounter c)
Gets the (positive) increment of this Counter variable over another. |
java.lang.String |
toTagString()
To convert the object to a printable string tagged with Counter: |
java.lang.Object |
toValue()
This method will give the SnmpCounter as Long object. |
Methods inherited from class com.adventnet.snmp.snmp2.SnmpUnsignedInt |
equals, getNumericValueAsString, getVarObject, longValue, toBytes, toString |
Methods inherited from class com.adventnet.snmp.snmp2.SnmpVar |
createVariable, getError, getType, getTypeString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SnmpCounter(long s)
s
- long value
The valid values ranges from 0 to 4294967295(both inclusive).Method Detail |
public java.lang.String toTagString()
toTagString
in class SnmpUnsignedInt
public java.lang.Object toValue()
toValue
in class SnmpUnsignedInt
public long getIncrement(SnmpCounter c)
public long getIncrement(long lastValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |