MySnmpCrawler API

snmp.message.handler
Class SnmpGetNextRequestHandler

java.lang.Object
  |
  +--snmp.message.handler.DefaultSnmpRequestHandler
        |
        +--snmp.message.handler.SnmpGetNextRequestHandler
All Implemented Interfaces:
java.util.EventListener, SnmpMessageHandler, SnmpRequestHandler, SnmpSessionEventListener

public class SnmpGetNextRequestHandler
extends DefaultSnmpRequestHandler

This class provides the required operations to handle SNMP GetNextRequest-PDU.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:49 $
Author:
Scott Cheng

Field Summary
private static SnmpGetNextRequestHandler instance
           
 
Fields inherited from interface snmp.message.handler.SnmpRequestHandler
GET, GETNEXT, SET
 
Constructor Summary
private SnmpGetNextRequestHandler()
          Constructs the SnmpGetNextRequestHandler object
 
Method Summary
 int getHandlerType()
          Gets the type of the handler.
static SnmpGetNextRequestHandler getInstance()
          Gets the singleton object of the SnmpGetNextRequestHandler.
private  void handleGetNextRequest(SnmpSessionEvent event)
           
 void handleSession(SnmpSessionEvent event)
          Invoked to handle the session when the SNMP PDU is "GetNextRequest-PDU".
 
Methods inherited from class snmp.message.handler.DefaultSnmpRequestHandler
checkPDU, isHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static SnmpGetNextRequestHandler instance
Constructor Detail

SnmpGetNextRequestHandler

private SnmpGetNextRequestHandler()
Constructs the SnmpGetNextRequestHandler object

Method Detail

handleSession

public void handleSession(SnmpSessionEvent event)
Invoked to handle the session when the SNMP PDU is "GetNextRequest-PDU".

Parameters:
event - The SnmpSessionEvent object

getHandlerType

public int getHandlerType()
Gets the type of the handler.

Returns:
The handler type

handleGetNextRequest

private void handleGetNextRequest(SnmpSessionEvent event)

getInstance

public static SnmpGetNextRequestHandler getInstance()
Gets the singleton object of the SnmpGetNextRequestHandler.

Returns:
The singleton object of the SnmpGetNextRequestHandler

MySnmpCrawler API