public class

SnmpCounter

extends SnmpUnsignedInt
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpValue
     ↳ com.sun.jmx.snmp.SnmpInt
       ↳ com.sun.jmx.snmp.SnmpUnsignedInt
         ↳ com.sun.jmx.snmp.SnmpCounter

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
From interface com.sun.jmx.snmp.SnmpDataTypeEnums
[Expand]
Inherited Fields
From class com.sun.jmx.snmp.SnmpInt
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
From class com.sun.jmx.snmp.SnmpValue
From class java.lang.Object

Public Constructors

public SnmpCounter (int v)

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.

public SnmpCounter (Integer v)

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.

public SnmpCounter (long v)

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.

public SnmpCounter (Long v)

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.

Public Methods

public final String getTypeName ()

Returns a textual description of the type object.

Returns
  • ASN.1 textual description.