Class JoeSnmpWalker.JoeSnmpResponseHandler

    • Constructor Detail

      • JoeSnmpResponseHandler

        public JoeSnmpResponseHandler()
    • Method Detail

      • snmpReceivedPdu

        public void snmpReceivedPdu​(SnmpSession session,
                                    int command,
                                    SnmpPduPacket pdu)
        Description copied from interface: SnmpHandler

        This method is invoked when a pdu is successfully returned from the peer agent. The command argument is recovered from the received pdu.

        Specified by:
        snmpReceivedPdu in interface SnmpHandler
        Parameters:
        session - The SNMP session
        command - The PDU command
        pdu - The SNMP pdu
      • snmpInternalError

        public void snmpInternalError​(SnmpSession session,
                                      int err,
                                      SnmpSyntax pdu)
        Description copied from interface: 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.

        Specified by:
        snmpInternalError in interface SnmpHandler
        Parameters:
        session - The SNMP session in question
        err - The error that occured
        pdu - The PDU object that caused the error
      • snmpTimeoutError

        public void snmpTimeoutError​(SnmpSession session,
                                     SnmpSyntax pdu)
        Description copied from interface: 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.

        Specified by:
        snmpTimeoutError in interface SnmpHandler
        Parameters:
        session - The SNMP Session
        pdu - The PDU object that timed out