com.sun.management.snmp
Class SnmpCounter
java.lang.Object
com.sun.management.snmp.SnmpValue
com.sun.management.snmp.SnmpInt
com.sun.management.snmp.SnmpUnsignedInt
com.sun.management.snmp.SnmpCounter
- All Implemented Interfaces:
- SnmpDataTypeEnums, Serializable, Cloneable
public class SnmpCounter
- extends SnmpUnsignedInt
Represents an SNMP counter.
- Since:
- Java DMK 5.1
- See Also:
- Serialized Form
Fields inherited from class com.sun.management.snmp.SnmpInt |
value |
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 |
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. |
Method Summary |
String |
getTypeName()
Returns a textual description of the type object. |
Methods inherited from class com.sun.management.snmp.SnmpInt |
appendToOid, clone, duplicate, intValue, longValue, nextOid, toInteger, toLong, toOid, toOid, toString |
SnmpCounter
public SnmpCounter(int v)
throws IllegalArgumentException
- Constructs a new
SnmpCounter
from the specified integer value.
- Parameters:
v
- The initialization value.
- Throws:
IllegalArgumentException
- The specified value is negative
or larger than SnmpUnsignedInt.MAX_VALUE
.
SnmpCounter
public SnmpCounter(Integer v)
throws IllegalArgumentException
- Constructs a new
SnmpCounter
from the specified Integer
value.
- Parameters:
v
- The initialization value.
- Throws:
IllegalArgumentException
- The specified value is negative
or larger than SnmpUnsignedInt.MAX_VALUE
.
SnmpCounter
public SnmpCounter(long v)
throws IllegalArgumentException
- Constructs a new
SnmpCounter
from the specified long value.
- Parameters:
v
- The initialization value.
- Throws:
IllegalArgumentException
- The specified value is negative
or larger than SnmpUnsignedInt.MAX_VALUE
.
SnmpCounter
public SnmpCounter(Long v)
throws IllegalArgumentException
- Constructs a new
SnmpCounter
from the specified Long
value.
- Parameters:
v
- The initialization value.
- Throws:
IllegalArgumentException
- The specified value is negative
or larger than SnmpUnsignedInt.MAX_VALUE
.
getTypeName
public final String getTypeName()
- Returns a textual description of the type object.
- Overrides:
getTypeName
in class SnmpUnsignedInt
- Returns:
- ASN.1 textual description.
Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.