All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.snmp.common.SnmpCounter64
java.lang.Object
|
+----com.sun.jaw.snmp.common.SnmpValue
|
+----com.sun.jaw.snmp.common.SnmpCounter64
- public class SnmpCounter64
- extends SnmpValue
The SnmpCounter64 class represents an SNMP 64bits counter.
-
SnmpCounter64(Long)
- Construct a new SnmpCounter64 from the specified long value.
-
SnmpCounter64(long)
- Construct a new SnmpCounter64 from the specified long value.
-
appendToOid(SnmpOid, SnmpOid)
- Append an SnmpOid representing an SnmpCounter64 to another Oid.
-
clone()
- Creates a new object of the same class as this object.
-
duplicate()
- Same as clone, but you can not perform cloning using this object because
clone is protected.
-
getTypeName()
- Returns a textual description of the object.
-
intValue()
- Convert the counter to its int form.
-
longValue()
- Convert the counter to its long form.
-
nextOid(long[], int)
- Scan an index oid, skip the counter value and returns the position
of the next value.
-
toLong()
- Convert the counter to its Long form.
-
toOid()
- Convert the counter to its Oid form.
-
toOid(long[], int)
- Extract the counter from an index oid and returns its
value converted as an Oid.
-
toString()
- Convert the unsigned integer to its string form.
SnmpCounter64
public SnmpCounter64(long v) throws IllegalArgumentException
- Construct a new SnmpCounter64 from the specified long value.
- Parameters:
- v - The initialization value.
- Throws: IllegalArgumentException
- The specified value is negative.
SnmpCounter64
public SnmpCounter64(Long v) throws IllegalArgumentException
- Construct a new SnmpCounter64 from the specified long value.
- Parameters:
- v - The initialization value.
- Throws: IllegalArgumentException
- The specified value is negative.
toLong
public Long toLong()
- Convert the counter to its Long form.
- Returns:
- The Long representation.
longValue
public long longValue()
- Convert the counter to its long form.
- Returns:
- A long
intValue
public int intValue()
- Convert the counter to its int form.
- Returns:
- An int
toString
public String toString()
- Convert the unsigned integer to its string form.
- Returns:
- The string representation.
- Overrides:
- toString in class Object
toOid
public SnmpOid toOid()
- Convert the counter to its Oid form.
- Returns:
- The Oid form
- Overrides:
- toOid in class SnmpValue
toOid
public static SnmpOid toOid(long index[],
int start) throws SnmpStatusException
- Extract the counter from an index oid and returns its
value converted as an Oid.
- Returns:
- The SnmpOid representing the counter value
- Throws: SnmpStatusException
- There is no counter value
available at start position
nextOid
public static int nextOid(long index[],
int start) throws SnmpStatusException
- Scan an index oid, skip the counter value and returns the position
of the next value.
- Returns:
- The position of the next value
- Throws: SnmpStatusException
- There is no counter value
available at start position
appendToOid
public static void appendToOid(SnmpOid source,
SnmpOid dest)
- Append an SnmpOid representing an SnmpCounter64 to another Oid.
- Parameters:
- source - An Oid representing an SnmpCounter64 value.
- dest - Where source should be appened.
getTypeName
public String getTypeName()
- Returns a textual description of the object.
- Returns:
- ASN.1 textual description.
- Overrides:
- getTypeName in class SnmpValue
duplicate
public final synchronized SnmpValue duplicate()
- Same as clone, but you can not perform cloning using this object because
clone is protected.
- Overrides:
- duplicate in class SnmpValue
clone
public final synchronized Object clone()
- Creates a new object of the same class as this object.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index