com.amx.duet.tools.net.snmp.api
Class SNMPCounter64

java.lang.Object
  extended bycom.amx.duet.tools.net.snmp.api.SNMPObject
      extended bycom.amx.duet.tools.net.snmp.api.SNMPInteger
          extended bycom.amx.duet.tools.net.snmp.api.SNMPCounter64

public class SNMPCounter64
extends SNMPInteger

Defines a 64-bit counter, whose value wraps if initialized with a larger value. For an indicator which "pegs" at its maximum value if initialized with a larger value, use SNMPGauge32; for a counter with a smaller range, use SNMPCounter32.

See Also:
snmp.dr1_0_14.SNMPGauge32, snmp.dr1_0_14.SNMPCounter32

Constructor Summary
SNMPCounter64()
          Initialize value to 0.
SNMPCounter64(long newValue)
           
 
Method Summary
 void setValue(java.lang.Object newValue)
          Used to set the value with an instance of java.lang.Integer or java.lang.BigInteger.
 
Methods inherited from class com.amx.duet.tools.net.snmp.api.SNMPInteger
extractValueFromBEREncoding, getValue, toString, toString
 
Methods inherited from class com.amx.duet.tools.net.snmp.api.SNMPObject
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SNMPCounter64

public SNMPCounter64()
Initialize value to 0.


SNMPCounter64

public SNMPCounter64(long newValue)
Method Detail

setValue

public void setValue(java.lang.Object newValue)
              throws SNMPBadValueException
Used to set the value with an instance of java.lang.Integer or java.lang.BigInteger. The value of the constructed SNMPCounter64 object is the supplied value mod 2^64.

Overrides:
setValue in class SNMPInteger
Throws:
SNMPBadValueException - Indicates an incorrect object type supplied.


Copyright © 2008 AMX LLC. All Rights Reserved.