|
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ireasoning.protocol.snmp.SnmpUInt
com.ireasoning.protocol.snmp.SnmpTimeTicks
This class represents Snmp TimeTicks type object. The TimeTicks type represents a non-negative integer which represents the time, modulo 2^32 (4294967296 decimal), in hundredths of a second between two epochs.
| Field Summary |
| Fields inherited from class com.ireasoning.protocol.snmp.SnmpUInt |
MAX_VALUE |
| 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 | |
SnmpTimeTicks()
Default constructor |
|
SnmpTimeTicks(long value)
Constructs the object with passed value, in hundredths of a second |
|
SnmpTimeTicks(SnmpTimeTicks timeticks)
Makes a copy of passed timeticks object |
|
SnmpTimeTicks(String value)
Constructs an SnmpCounter32 object based on passed counter |
|
| Method Summary | |
SnmpDataType |
copy()
Return a deep copy of this object. |
int |
encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
For internal use |
String |
getTimeString()
Returns human readable time string, such as "10 milliseconds", "10 hours 22 minute 31 seconds". |
static String |
getTimeString(long time)
Returns human readable time string, such as "10 milliseconds", "10 hours 22 minute 31 seconds". |
int |
getType()
Returns SnmpDataType.TIMETICKS |
String |
getTypeString()
Returns "TimeTicks" |
String |
toString()
|
| Methods inherited from class com.ireasoning.protocol.snmp.SnmpUInt |
equals, getValue, hashCode, setValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SnmpTimeTicks()
public SnmpTimeTicks(long value)
public SnmpTimeTicks(String value)
public SnmpTimeTicks(SnmpTimeTicks timeticks)
| Method Detail |
public int getType()
getType in interface SnmpDataTypegetType in class SnmpUIntpublic String toString()
toString in class SnmpUIntpublic String getTimeString()
public static String getTimeString(long time)
time - the time integer to be translated to human readable stringpublic String getTypeString()
getTypeString in interface SnmpDataTypegetTypeString in class SnmpUIntpublic SnmpDataType copy()
copy in interface SnmpDataTypecopy in class SnmpUInt
public int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
throws SnmpEncodingException
SnmpDataType
encode in interface SnmpDataTypeencode in class SnmpUIntSnmpEncodingException
|
HOME | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||