|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.snmp.common.SnmpValue | +--com.sun.jaw.snmp.common.SnmpCounter64
The SnmpCounter64
class represents an SNMP 64bits counter.
Field Summary | |
protected long |
value
This is where the value is stored. |
Constructor Summary | |
SnmpCounter64(long v)
Constructs a new SnmpCounter64 from the specified long value. |
|
SnmpCounter64(java.lang.Long v)
Constructs a new SnmpCounter64 from the specified Long value. |
Method Summary | |
static void |
appendToOid(SnmpOid source,
SnmpOid dest)
Appends an SnmpOid representing an SnmpCounter64 to another oid. |
java.lang.Object |
clone()
Clones the SnmpCounter64 object, making a copy of its data. |
SnmpValue |
duplicate()
Performs a clone action. |
java.lang.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. |
java.lang.Integer |
toInteger()
Converts the counter value to its Integer form. |
java.lang.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 . |
java.lang.String |
toString()
Converts the counter value to its String form. |
Methods inherited from class com.sun.jaw.snmp.common.SnmpValue |
toAsn1String |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected long value
Constructor Detail |
public SnmpCounter64(long v) throws java.lang.IllegalArgumentException
SnmpCounter64
from the specified long value.v
- The initialization value.Long.MAX_VALUE
.public SnmpCounter64(java.lang.Long v) throws java.lang.IllegalArgumentException
SnmpCounter64
from the specified Long
value.v
- The initialization value.Long.MAX_VALUE
.Method Detail |
public long longValue()
SnmpCounter64
.public java.lang.Long toLong()
Long
form.Long
representation of the value.public int intValue()
public java.lang.Integer toInteger()
Integer
form.Integer
representation of the value.public java.lang.String toString()
String
form.String
representation of the value.public SnmpOid toOid()
SnmpOid
form.public static SnmpOid toOid(long[] index, int start) throws SnmpStatusException
SnmpOid
.index
- The index array.start
- The position in the index array.public static int nextOid(long[] index, int start) throws SnmpStatusException
index
- The index array.start
- The position in the index array.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 appened.public final SnmpValue duplicate()
SnmpValue
interface.public final java.lang.Object clone()
SnmpCounter64
object, making a copy of its data.public final java.lang.String getTypeName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |