|
JoeSNMP API 0.2.6 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.protocols.snmp.SnmpCounter64
This class defines the 64-bit SNMP counter object used to transmit 64-bit unsigned number.
Field Summary | |
static byte |
ASNTYPE
The ASN.1 value for an unsigned integer value. |
private BigInteger |
m_value
The internal 64-bit unsigned quantity implemented as a 64-bit signed quantity |
Constructor Summary | |
SnmpCounter64()
Default class constructor. |
|
SnmpCounter64(BigInteger value)
Constructs a SnmpCounter64 object with the specified value. |
|
SnmpCounter64(long value)
Constructs a SnmpCounter64 object with the specified value. |
|
SnmpCounter64(SnmpCounter64 second)
Class copy constructor. |
Method Summary | |
Object |
clone()
Returns a duplicte of the current object |
int |
decodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Used to decode the integer value from the ASN.1 buffer. |
SnmpSyntax |
duplicate()
Returns a duplicte of the current object |
int |
encodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Used to encode the integer value into an ASN.1 buffer. |
BigInteger |
getValue()
Used to retreive the 64-bit unsigned value. |
void |
setValue(BigInteger value)
Used to set the 64-bit unsigned quantity. |
String |
toString()
Returns the string representation of the object. |
byte |
typeId()
Used to retreive the ASN.1 type for this object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private BigInteger m_value
public static final byte ASNTYPE
Constructor Detail |
public SnmpCounter64()
public SnmpCounter64(long value)
value
- The new 64-bit value.public SnmpCounter64(BigInteger value)
value
- The new 64-bit value.public SnmpCounter64(SnmpCounter64 second)
second
- The object to copy the value from.Method Detail |
public BigInteger getValue()
public void setValue(BigInteger value)
value
- The new value for the objectpublic byte typeId()
typeId
in interface SnmpSyntax
public int encodeASN(byte[] buf, int offset, AsnEncoder encoder) throws AsnEncodingException
encodeASN
in interface SnmpSyntax
buf
- The location to write the encoded dataoffset
- The start of the encoded buffer.encoder
- The ASN.1 encoder object
AsnEncodingException
- Thrown if an encoding error occurspublic int decodeASN(byte[] buf, int offset, AsnEncoder encoder) throws AsnDecodingException
decodeASN
in interface SnmpSyntax
buf
- The encoded ASN.1 dataoffset
- The offset of the first byte of dataencoder
- The ASN.1 decoder object.
AsnDecodingException
- Thrown if an encoding error occurspublic SnmpSyntax duplicate()
duplicate
in interface SnmpSyntax
public Object clone()
public String toString()
|
JoeSNMP API 0.2.6 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |