Package uk.co.westhawk.snmp.stack
Class ReportPdu
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.ReportPdu
This class represents the ASN SNMP Report PDU object.
This class is used when requests are received that try to discover our
SNMPv3 timeliness. This will only be the case then the stack acts as
authoritative engine.
Reports are not used (as far as we know) in normal manager - agent (authoritative - non authoritative) communication. Hence the reason why this stack does not support them in any other way.
- Since:
- 4_14
- Version:
- $Revision: 3.3 $ $Date: 2006/01/17 17:59:34 $
- Author:
- Birgit Arkesteijn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetErrorIndex(int errorIndex) Sets the error index of this PDU.voidgetErrorStatus(int errorStatus) Sets the error status of this PDU.toString()Returns the string representation of this object.Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, send, send, setRetryIntervals, waitForSelfMethods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Constructor Details
-
ReportPdu
Constructor. The requestPdu is used to copy the necessary IDs to this PDU.- Parameters:
con- The context of the PDUrequestPdu- The original Request PDU
-
-
Method Details
-
getErrorStatus
public void getErrorStatus(int errorStatus) Sets the error status of this PDU. This indicates that an exception has occurred while processing the original request.- See Also:
-
SnmpConstants.SNMP_ERR_NOERRORSnmpConstants.SNMP_ERR_TOOBIGSnmpConstants.SNMP_ERR_NOSUCHNAMESnmpConstants.SNMP_ERR_BADVALUESnmpConstants.SNMP_ERR_READONLYSnmpConstants.SNMP_ERR_GENERRSnmpConstants.SNMP_ERR_NOACCESSSnmpConstants.SNMP_ERR_WRONGTYPESnmpConstants.SNMP_ERR_WRONGLENGTHSnmpConstants.SNMP_ERR_WRONGENCODINGSnmpConstants.SNMP_ERR_WRONGVALUESnmpConstants.SNMP_ERR_NOCREATIONSnmpConstants.SNMP_ERR_INCONSISTENTVALUESnmpConstants.SNMP_ERR_RESOURCEUNAVAILABLESnmpConstants.SNMP_ERR_COMMITFAILEDSnmpConstants.SNMP_ERR_UNDOFAILEDSnmpConstants.SNMP_ERR_AUTHORIZATIONERRSnmpConstants.SNMP_ERR_NOTWRITABLESnmpConstants.SNMP_ERR_INCONSISTENTNAME
-
getErrorIndex
public void getErrorIndex(int errorIndex) Sets the error index of this PDU. When the error status is not SNMP_ERR_NOERROR, it indicates the index of the variable in the varbind list that caused the exception. -
toString
Returns the string representation of this object.
-