public class JoeSnmpWalker.JoeSnmpResponseHandler extends Object implements SnmpHandler
Constructor and Description |
---|
JoeSnmpResponseHandler() |
Modifier and Type | Method and Description |
---|---|
void |
snmpInternalError(SnmpSession session,
int err,
SnmpSyntax pdu)
This method is invoked when an internal error occurs for the session.
|
void |
snmpReceivedPdu(SnmpSession session,
int command,
SnmpPduPacket pdu)
This method is invoked when a pdu is successfully returned from the peer
agent.
|
void |
snmpTimeoutError(SnmpSession session,
SnmpSyntax pdu)
This method is invoked when an agent fails to respond in the required
time.
|
public void snmpReceivedPdu(SnmpSession session, int command, SnmpPduPacket pdu)
SnmpHandler
This method is invoked when a pdu is successfully returned from the peer agent. The command argument is recovered from the received pdu.
snmpReceivedPdu
in interface SnmpHandler
session
- The SNMP sessioncommand
- The PDU commandpdu
- The SNMP pdupublic void snmpInternalError(SnmpSession session, int err, SnmpSyntax pdu)
SnmpHandler
This 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.
snmpInternalError
in interface SnmpHandler
session
- The SNMP session in questionerr
- The error that occuredpdu
- The PDU object that caused the errorpublic void snmpTimeoutError(SnmpSession session, SnmpSyntax pdu)
SnmpHandler
This 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.
snmpTimeoutError
in interface SnmpHandler
session
- The SNMP Sessionpdu
- The PDU object that timed outCopyright © 2021. All rights reserved.