|
||||||||||
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.SnmpCounter64
public class SnmpCounter64
Represents an SNMP 64bits counter.
Field Summary |
---|
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 | |
---|---|
SnmpCounter64(long v)
Constructs a new SnmpCounter64 from the specified long value. |
|
SnmpCounter64(Long v)
Constructs a new SnmpCounter64 from the specified Long value. |
|
SnmpCounter64(UnsignedLong v)
Constructs a new SnmpCounter64 from the specified UnsignedLong value. |
Method Summary | |
---|---|
static void |
appendToOid(SnmpOid source,
SnmpOid dest)
Appends an SnmpOid representing an SnmpCounter64 to another OID. |
Object |
clone()
Clones the SnmpCounter64 object, making a copy of its data. |
SnmpValue |
duplicate()
Performs a clone action. |
String |
getTypeName()
Returns a textual description of the type object. |
int |
intValue()
Converts the counter value to its integer form. |
long |
longValue()
Returns the counter value of this SnmpCounter64 . |
static int |
nextOid(long[] index,
int start)
Scans an index OID, skips the counter value and returns the position of the next value. |
Integer |
toInteger()
Converts the counter value to its Integer form. |
Long |
toLong()
Converts the counter value to its Long form. |
SnmpOid |
toOid()
Converts the counter value to its SnmpOid form. |
static SnmpOid |
toOid(long[] index,
int start)
Extracts the counter from an index OID and returns its value converted as an SnmpOid . |
String |
toString()
Converts the counter value to its String form. |
UnsignedLong |
toUnsignedLong()
Converts the counter value to its UnsignedLong form. |
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 SnmpCounter64(long v) throws IllegalArgumentException
SnmpCounter64
from the specified long value.
v
- The initialization value.
IllegalArgumentException
- The specified value is negative
or larger than Long.MAX_VALUE
.public SnmpCounter64(Long v) throws IllegalArgumentException
SnmpCounter64
from the specified Long
value.
v
- The initialization value.
IllegalArgumentException
- The specified value is negative
or larger than Long.MAX_VALUE
.public SnmpCounter64(UnsignedLong v) throws IllegalArgumentException
SnmpCounter64
from the specified UnsignedLong value.
v
- The initialization value.
IllegalArgumentException
- The specified value is
larger than Long.MAX_VALUE
.Method Detail |
---|
public long longValue()
SnmpCounter64
.
public Long toLong()
Long
form.
Long
representation of the value.public int intValue()
public UnsignedLong toUnsignedLong()
public Integer toInteger()
Integer
form.
Integer
representation of the value.public String toString()
String
form.
toString
in class Object
String
representation of the value.public SnmpOid toOid()
SnmpOid
form.
toOid
in class SnmpValue
public static SnmpOid toOid(long[] index, int start) throws SnmpStatusException
SnmpOid
.
index
- The index array.start
- The position in the index array.
SnmpStatusException
- There is no counter value
available at the start position.public static int nextOid(long[] index, int start) throws SnmpStatusException
index
- The index array.start
- The position in the index array.
SnmpStatusException
- There is no counter value
available at the start position.public static void appendToOid(SnmpOid source, SnmpOid dest)
SnmpOid
representing an SnmpCounter64
to another OID.
source
- An OID representing an SnmpCounter64
value.dest
- Where source should be appended.public final SnmpValue duplicate()
SnmpValue
interface.
duplicate
in class SnmpValue
public final Object clone()
SnmpCounter64
object, making a copy of its data.
clone
in class Object
public final String getTypeName()
getTypeName
in class SnmpValue
|
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 |