JoeSNMP API 0.2.6

org.opennms.protocols.snmp
Class SnmpGauge32

java.lang.Object
  extended byorg.opennms.protocols.snmp.SnmpUInt32
      extended byorg.opennms.protocols.snmp.SnmpGauge32
All Implemented Interfaces:
Cloneable, Serializable, SnmpSyntax

public class SnmpGauge32
extends SnmpUInt32

Defines a SNMPv1 32-bit gauge object. The object is a 32-bit unsigned value that may increase or decrease but does not wrap as a SnmpCounter32. The object inherients and uses most of the methods defined by the SnmpUInt32 class. This class does not define any specific data, but is instead used to override the ASN.1 type of the base class.

Version:
$Revision: 1.8 $
Author:
Serialized Form

Field Summary
static byte ASNTYPE
          Defines the ASN.1 type for this object.
 
Fields inherited from class org.opennms.protocols.snmp.SnmpUInt32
serialVersionUID
 
Constructor Summary
SnmpGauge32()
          Constructs the default counter object.
SnmpGauge32(long value)
          Constructs the object with the specified value.
SnmpGauge32(Long value)
          Constructs the object with the specified value.
SnmpGauge32(SnmpGauge32 second)
          Constructs a new object with the same value as the passed object.
SnmpGauge32(SnmpUInt32 uint32)
          Constructs a new object with the value constained in the SnmpUInt32 object.
 
Method Summary
 Object clone()
          Creates a new object that is a duplicate of the current object.
 SnmpSyntax duplicate()
          Creates a new object that is a duplicate of the current object.
 String toString()
          Returns the string representation of the object.
 byte typeId()
          Returns the ASN.1 type specific to this object.
 
Methods inherited from class org.opennms.protocols.snmp.SnmpUInt32
decodeASN, encodeASN, getValue, setValue, setValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASNTYPE

public static final byte ASNTYPE
Defines the ASN.1 type for this object.

See Also:
Constant Field Values
Constructor Detail

SnmpGauge32

public SnmpGauge32()
Constructs the default counter object. The initial value is defined by the super class default constructor


SnmpGauge32

public SnmpGauge32(long value)
Constructs the object with the specified value.

Parameters:
value - The default value for the object.

SnmpGauge32

public SnmpGauge32(Long value)
Constructs the object with the specified value.

Parameters:
value - The default value for the object.

SnmpGauge32

public SnmpGauge32(SnmpGauge32 second)
Constructs a new object with the same value as the passed object.

Parameters:
second - The object to recover values from.

SnmpGauge32

public SnmpGauge32(SnmpUInt32 uint32)
Constructs a new object with the value constained in the SnmpUInt32 object.

Parameters:
uint32 - The SnmpUInt32 object to copy.
Method Detail

typeId

public byte typeId()
Returns the ASN.1 type specific to this object.

Specified by:
typeId in interface SnmpSyntax
Overrides:
typeId in class SnmpUInt32
Returns:
The ASN.1 value for this object.

duplicate

public SnmpSyntax duplicate()
Creates a new object that is a duplicate of the current object.

Specified by:
duplicate in interface SnmpSyntax
Overrides:
duplicate in class SnmpUInt32
Returns:
The newly created duplicate object.

clone

public Object clone()
Creates a new object that is a duplicate of the current object.

Overrides:
clone in class SnmpUInt32
Returns:
The newly created duplicate object.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class SnmpUInt32

JoeSNMP API 0.2.6

Generated by jpp on July 15 2004 1044.