| java.lang.Object snmp.SNMPObject snmp.SNMPInteger snmp.SNMPGauge32
SNMPGauge32 | public class SNMPGauge32 extends SNMPInteger (Code) | | Defines a 32-bit gauge, whose value "pegs" at the maximum if initialized with a larger
value. For an indicator which wraps when it reaches its maximum value, use SNMPCounter32;
for a counter with a wider range, use SNMPCounter64.
See Also: snmp.SNMPCounter32 See Also: snmp.SNMPCounter64 |
Constructor Summary | |
public | SNMPGauge32() Initialize value to 0. | public | SNMPGauge32(long newValue) | protected | SNMPGauge32(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. |
SNMPGauge32 | public SNMPGauge32()(Code) | | Initialize value to 0.
|
SNMPGauge32 | public SNMPGauge32(long newValue)(Code) | | |
SNMPGauge32 | protected SNMPGauge32(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 SNMPGauge32 object is the
supplied value or 2^32, whichever is less.
throws: SNMPBadValueException - Indicates an incorrect object type supplied. |
|
|