|
||||||||||
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.SnmpTimeticks
Class of SNMP Timeticks Variable - Sub-class of SnmpVar. A timeticks value has the unit of hundredth of a second. This class can be used to create an SnmpVar object of type SnmpTimeticks. It also has methods to retrieve the value in different forms(eg. long String, byte).
Constructor Summary | |
SnmpTimeticks(long s)
Constructs a new SnmpTimeticks object by taking a long type as its argument |
Method Summary | |
java.lang.String |
toShortString()
To convert the value of this SnmpTimeticks object to a printable string with Nd HH:MM:SS |
java.lang.String |
toString()
To convert the value of this SnmpTimeticks object to a printable string with # days, # hours, etc. |
java.lang.String |
toTagString()
To convert the value of this SnmpTimeticks object to a printable string where the type is tagged before the value with a tag TimeTicks: . |
Methods inherited from class com.adventnet.snmp.snmp2.SnmpUnsignedInt |
equals, getNumericValueAsString, getVarObject, longValue, toBytes, toValue |
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 SnmpTimeticks(long s)
s
- The Timeticks as long type for creating a new SnmpTimeticks
object. The valid value ranges from 0 to 4294967295(both inclusive).Method Detail |
public java.lang.String toString()
toString
in class SnmpUnsignedInt
public java.lang.String toShortString()
public java.lang.String toTagString()
toTagString
in class SnmpUnsignedInt
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |