Package org.opennms.netmgt.snmp.joesnmp
Class JoeSnmpWalker.JoeSnmpResponseHandler
- java.lang.Object
-
- org.opennms.netmgt.snmp.joesnmp.JoeSnmpWalker.JoeSnmpResponseHandler
-
- All Implemented Interfaces:
SnmpHandler
- Enclosing class:
- JoeSnmpWalker
public class JoeSnmpWalker.JoeSnmpResponseHandler extends Object implements SnmpHandler
-
-
Constructor Summary
Constructors Constructor Description JoeSnmpResponseHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsnmpInternalError(SnmpSession session, int err, SnmpSyntax pdu)This method is invoked when an internal error occurs for the session.voidsnmpReceivedPdu(SnmpSession session, int command, SnmpPduPacket pdu)This method is invoked when a pdu is successfully returned from the peer agent.voidsnmpTimeoutError(SnmpSession session, SnmpSyntax pdu)This method is invoked when an agent fails to respond in the required time.
-
-
-
Method Detail
-
snmpReceivedPdu
public void snmpReceivedPdu(SnmpSession session, int command, SnmpPduPacket pdu)
Description copied from interface:SnmpHandlerThis method is invoked when a pdu is successfully returned from the peer agent. The command argument is recovered from the received pdu.
- Specified by:
snmpReceivedPduin interfaceSnmpHandler- Parameters:
session- The SNMP sessioncommand- The PDU commandpdu- The SNMP pdu
-
snmpInternalError
public void snmpInternalError(SnmpSession session, int err, SnmpSyntax pdu)
Description copied from interface:SnmpHandlerThis method is invoked when an internal error occurs for the session. To determine the exact error the err parameter should be compared with all the error conditions defined in the SnmpSession class.
- Specified by:
snmpInternalErrorin interfaceSnmpHandler- Parameters:
session- The SNMP session in questionerr- The error that occuredpdu- The PDU object that caused the error
-
snmpTimeoutError
public void snmpTimeoutError(SnmpSession session, SnmpSyntax pdu)
Description copied from interface:SnmpHandlerThis method is invoked when an agent fails to respond in the required time. This method will only be invoked if the total retries exceed the number defined by the session.
- Specified by:
snmpTimeoutErrorin interfaceSnmpHandler- Parameters:
session- The SNMP Sessionpdu- The PDU object that timed out
-
-