com.sun.management.snmp
Class SnmpGauge

java.lang.Object
  extended bycom.sun.management.snmp.SnmpValue
      extended bycom.sun.management.snmp.SnmpInt
          extended bycom.sun.management.snmp.SnmpUnsignedInt
              extended bycom.sun.management.snmp.SnmpGauge
All Implemented Interfaces:
Cloneable, Serializable, SnmpDataTypeEnums

public class SnmpGauge
extends SnmpUnsignedInt

Represents an SNMP gauge.

Since:
Java DMK 5.1
Version:
4.7 05/05/04
Author:
Sun Microsystems, Inc
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.management.snmp.SnmpUnsignedInt
MAX_VALUE
 
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, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag
 
Constructor Summary
SnmpGauge(int v)
          Constructs a new SnmpGauge from the specified integer value.
SnmpGauge(Integer v)
          Constructs a new SnmpGauge from the specified Integer value.
SnmpGauge(long v)
          Constructs a new SnmpGauge from the specified long value.
SnmpGauge(Long v)
          Constructs a new SnmpGauge 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
 
Methods inherited from class com.sun.management.snmp.SnmpValue
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpGauge

public SnmpGauge(int v)
          throws IllegalArgumentException
Constructs a new SnmpGauge from the specified integer value.

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.

SnmpGauge

public SnmpGauge(Integer v)
          throws IllegalArgumentException
Constructs a new SnmpGauge from the specified Integer value.

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.

SnmpGauge

public SnmpGauge(long v)
          throws IllegalArgumentException
Constructs a new SnmpGauge from the specified long value.

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.

SnmpGauge

public SnmpGauge(Long v)
          throws IllegalArgumentException
Constructs a new SnmpGauge from the specified Long value.

Parameters:
v - The initialization value.
Throws:
IllegalArgumentException - The specified value is negative or larger than SnmpUnsignedInt.MAX_VALUE.
Method Detail

getTypeName

public final String getTypeName()
Returns a textual description of the type object.

Overrides:
getTypeName in class SnmpUnsignedInt
Returns:
ASN.1 textual description.

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.