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.


Constructor Index

 o SnmpCounter64(Long)
Construct a new SnmpCounter64 from the specified long value.
 o SnmpCounter64(long)
Construct a new SnmpCounter64 from the specified long value.

Method Index

 o appendToOid(SnmpOid, SnmpOid)
Append an SnmpOid representing an SnmpCounter64 to another Oid.
 o clone()
Creates a new object of the same class as this object.
 o duplicate()
Same as clone, but you can not perform cloning using this object because clone is protected.
 o getTypeName()
Returns a textual description of the object.
 o intValue()
Convert the counter to its int form.
 o longValue()
Convert the counter to its long form.
 o nextOid(long[], int)
Scan an index oid, skip the counter value and returns the position of the next value.
 o toLong()
Convert the counter to its Long form.
 o toOid()
Convert the counter to its Oid form.
 o toOid(long[], int)
Extract the counter from an index oid and returns its value converted as an Oid.
 o toString()
Convert the unsigned integer to its string form.

Constructors

 o 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.
 o 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.

Methods

 o toLong
 public Long toLong()
Convert the counter to its Long form.

Returns:
The Long representation.
 o longValue
 public long longValue()
Convert the counter to its long form.

Returns:
A long
 o intValue
 public int intValue()
Convert the counter to its int form.

Returns:
An int
 o toString
 public String toString()
Convert the unsigned integer to its string form.

Returns:
The string representation.
Overrides:
toString in class Object
 o toOid
 public SnmpOid toOid()
Convert the counter to its Oid form.

Returns:
The Oid form
Overrides:
toOid in class SnmpValue
 o 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
 o 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
 o 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.
 o getTypeName
 public String getTypeName()
Returns a textual description of the object.

Returns:
ASN.1 textual description.
Overrides:
getTypeName in class SnmpValue
 o 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
 o 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