Class Overview
Represents an SNMP counter.
This API is a Sun Microsystems internal API and is subject
to change without notice.
Summary
[Expand]
Inherited Constants |
From class
com.sun.jmx.snmp.SnmpUnsignedInt
long |
MAX_VALUE |
The largest value of the type unsigned int (2^32 - 1). |
|
From interface
com.sun.jmx.snmp.SnmpDataTypeEnums
int |
ApplFlag |
|
int |
BitStringTag |
|
int |
BooleanTag |
|
int |
Counter64Tag |
|
int |
CounterTag |
|
int |
CtxtFlag |
|
int |
GaugeTag |
|
int |
IntegerTag |
|
int |
IpAddressTag |
|
int |
NsapTag |
|
int |
NullTag |
|
int |
ObjectIdentiferTag |
|
int |
OctetStringTag |
|
int |
OpaqueTag |
|
int |
SequenceTag |
|
int |
TableTag |
|
int |
TimeticksTag |
|
int |
UintegerTag |
|
int |
UnknownSyntaxTag |
|
int |
errEndOfMibViewTag |
|
int |
errNoSuchInstanceTag |
|
int |
errNoSuchObjectTag |
|
|
Public Constructors |
|
SnmpCounter(int v)
Constructs a new SnmpCounter from the specified integer value.
|
|
SnmpCounter(Integer v)
Constructs a new SnmpCounter from the specified Integer value.
|
|
SnmpCounter(long v)
Constructs a new SnmpCounter from the specified long value.
|
|
SnmpCounter(Long v)
Constructs a new SnmpCounter from the specified Long value.
|
Public Methods |
final
String
|
getTypeName()
Returns a textual description of the type object.
|
[Expand]
Inherited Methods |
From class
com.sun.jmx.snmp.SnmpUnsignedInt
|
From class
com.sun.jmx.snmp.SnmpInt
static
void
|
appendToOid(SnmpOid source, SnmpOid dest)
Appends an SnmpOid representing an SnmpInt to another OID.
|
synchronized
final
Object
|
clone()
Clones the SnmpInt object, making a copy of its data.
|
synchronized
final
SnmpValue
|
duplicate()
Performs a clone action.
|
String
|
getTypeName()
Returns a textual description of the type object.
|
int
|
intValue()
Converts the integer value to its integer form.
|
long
|
longValue()
Returns the long value of this SnmpInt .
|
static
int
|
nextOid(long[] index, int start)
Scans an index OID, skips the integer value and returns the position
of the next value.
|
Integer
|
toInteger()
Converts the integer value to its Integer form.
|
Long
|
toLong()
Converts the integer value to its Long form.
|
SnmpOid
|
toOid()
Converts the integer value to its SnmpOid form.
|
static
SnmpOid
|
toOid(long[] index, int start)
Extracts the integer from an index OID and returns its
value converted as an SnmpOid .
|
String
|
toString()
Converts the integer value to its String form.
|
|
From class
com.sun.jmx.snmp.SnmpValue
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Constructors
public
SnmpCounter
(int v)
Constructs a new SnmpCounter
from the specified integer value.
Parameters
v
| The initialization value. |
public
SnmpCounter
(Integer v)
Constructs a new SnmpCounter
from the specified Integer
value.
Parameters
v
| The initialization value. |
public
SnmpCounter
(long v)
Constructs a new SnmpCounter
from the specified long value.
Parameters
v
| The initialization value. |
public
SnmpCounter
(Long v)
Constructs a new SnmpCounter
from the specified Long
value.
Parameters
v
| The initialization value. |
Public Methods
public
final
String
getTypeName
()
Returns a textual description of the type object.
Returns
- ASN.1 textual description.