|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.snmp.SnmpValue com.sun.management.snmp.SnmpInt com.sun.management.snmp.SnmpUnsignedInt com.sun.management.snmp.SnmpTimeticks
public class SnmpTimeticks
Contains an SnmpTimeTick
value which
has units of 1/100th of a second.
Field Summary |
---|
Fields inherited from class com.sun.management.snmp.SnmpUnsignedInt |
---|
MAX_VALUE |
Fields inherited from class com.sun.management.snmp.SnmpInt |
---|
value |
Fields inherited from interface com.sun.management.snmp.SnmpDataTypeEnums |
---|
ApplFlag, BitStringTag, BooleanTag, Counter64Tag, CounterTag, CtxtFlag, errEndOfMibViewTag, errNoSuchInstanceTag, errNoSuchObjectTag, GaugeTag, IntegerTag, IpAddressTag, NsapTag, NullTag, ObjectIdentiferTag, ObjectIdentifierTag, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag |
Constructor Summary | |
---|---|
SnmpTimeticks(int v)
Constructs a new SnmpTimeticks from the specified integer
value. |
|
SnmpTimeticks(Integer v)
Constructs a new SnmpTimeticks from the specified
Integer value. |
|
SnmpTimeticks(long v)
Constructs a new SnmpTimeticks from the specified long
value. |
|
SnmpTimeticks(Long v)
Constructs a new SnmpTimeticks from the specified
Long value. |
Method Summary | |
---|---|
String |
getTypeName()
Returns a textual description of the type object. |
static String |
printTimeTicks(long timeticks)
Parses the specified long value with time units and returns a String of the form d days hh:mm:ss . |
String |
toString()
Converts the timeticks value to its String form. |
Methods inherited from class com.sun.management.snmp.SnmpInt |
---|
appendToOid, clone, duplicate, intValue, longValue, nextOid, toInteger, toLong, toOid, toOid |
Methods inherited from class com.sun.management.snmp.SnmpValue |
---|
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SnmpTimeticks(int v) throws IllegalArgumentException
SnmpTimeticks
from the specified integer
value.
v
- The initialization value.
IllegalArgumentException
- if the specified value is negative.public SnmpTimeticks(Integer v) throws IllegalArgumentException
SnmpTimeticks
from the specified
Integer
value.
v
- The initialization value.
IllegalArgumentException
- if the specified value is negative.public SnmpTimeticks(long v) throws IllegalArgumentException
SnmpTimeticks
from the specified long
value.
If the specified value is greater than SnmpUnsignedInt.MAX_VALUE
, the SnmpTimeTicks
will be initialized with v%(SnmpUnsignedInt.MAX_VALUE+1)
.
v
- The initialization value.
IllegalArgumentException
- if the specified value is negative.public SnmpTimeticks(Long v) throws IllegalArgumentException
SnmpTimeticks
from the specified
Long
value.
If the specified value is greater than SnmpUnsignedInt.MAX_VALUE
, the SnmpTimeTicks
will be initialized with v%(SnmpUnsignedInt.MAX_VALUE+1)
.
v
- The initialization value.
IllegalArgumentException
- if the specified value is negative.Method Detail |
---|
public static final String printTimeTicks(long timeticks)
String
of the form d days hh:mm:ss
.
timeticks
- The value to be parsed.
String
representation of the value.public final String toString()
String
form.
The format of the returned String
is
d days hh:mm:ss
.
printTimeTicks
method.
toString
in class SnmpInt
String
representation of the value.public final String getTypeName()
getTypeName
in class SnmpUnsignedInt
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |