| java.lang.Object snmp.SNMPObject snmp.SNMPInteger snmp.SNMPCounter64
SNMPCounter64 | public class SNMPCounter64 extends SNMPInteger (Code) | | 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.SNMPGauge32 See Also: snmp.SNMPCounter32 |
Constructor Summary | |
public | SNMPCounter64() Initialize value to 0. | public | SNMPCounter64(long newValue) | protected | SNMPCounter64(byte[] enc) Used to initialize from the BER encoding, usually received in a response from
an SNMP device responding to an SNMPGetRequest.
throws: SNMPBadValueException - Indicates an invalid BER encoding supplied. |
Method Summary | |
public void | setValue(Object newValue) Used to set the value with an instance of java.lang.Integer or
java.lang.BigInteger. |
SNMPCounter64 | public SNMPCounter64()(Code) | | Initialize value to 0.
|
SNMPCounter64 | public SNMPCounter64(long newValue)(Code) | | |
SNMPCounter64 | protected SNMPCounter64(byte[] enc) throws SNMPBadValueException(Code) | | Used to initialize from the BER encoding, usually received in a response from
an SNMP device responding to an SNMPGetRequest.
throws: SNMPBadValueException - Indicates an invalid BER encoding supplied. Shouldn'toccur in normal operation, i.e., when valid responses are received from devices. |
setValue | public void setValue(Object newValue) throws SNMPBadValueException(Code) | | 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.
throws: SNMPBadValueException - Indicates an incorrect object type supplied. |
|
|