|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.protocols.snmp.SnmpV2Error
This class provides the base class for the SNMP V2 error class. In SNMPv2 an agent may respond to individual variables with one of three errors: End-of-Mib-View, No-Such-Instance, or No-Such-Object. Each of the error conditions are derived from this base class. By responding to error in this way the agent can still return valid variables while informing the manager of the variables in error. For more information see "SNMP, SNMPv2, SNMPv3, and RMON 1 and 2, 3rd Ed" by William Stallings. (ISBN 0-201-48534-6)
Field Summary | |
(package private) static long |
serialVersionUID
Changes to define new serialzation formats. |
Constructor Summary | |
SnmpV2Error()
Default constructor. |
|
SnmpV2Error(SnmpV2Error second)
Copy constructor. |
Method Summary | |
abstract java.lang.Object |
clone()
Returns a duplicate of the current object. |
int |
decodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Decodes the passed buffer and updates the object to match the encoded information. |
abstract SnmpSyntax |
duplicate()
Returns a duplicate of the current object. |
int |
encodeASN(byte[] buf,
int offset,
AsnEncoder encoder)
Encodes the SNMPv2 error into the passed buffer using the encoder object. |
abstract byte |
typeId()
Returns the ASN.1 type identifier for the SNMPv2 error. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final long serialVersionUID
Constructor Detail |
public SnmpV2Error()
public SnmpV2Error(SnmpV2Error second)
second
- The object to copy to selfMethod Detail |
public abstract byte typeId()
typeId
in interface SnmpSyntax
public int encodeASN(byte[] buf, int offset, AsnEncoder encoder) throws AsnEncodingException
encodeASN
in interface SnmpSyntax
buf
- The buffer to store encoded bytesoffset
- The start of the encoding locationencoder
- The encoding 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 bufferoffset
- The offset of the first byte of encoded dataencoder
- The object used to decode the data.
AsnDecodingException
- Thrown if an encoding error occurspublic abstract SnmpSyntax duplicate()
duplicate
in interface SnmpSyntax
public abstract java.lang.Object clone()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |