MySnmpCrawler API

snmp.session
Class SnmpSessionEventListenerImpl

java.lang.Object
  |
  +--snmp.session.SnmpSessionEventListenerImpl
All Implemented Interfaces:
java.util.EventListener, SnmpSessionEventListener

public class SnmpSessionEventListenerImpl
extends java.lang.Object
implements SnmpSessionEventListener

This class receives the SnmpSessionEvent and forwards the event to the appropriate request handler for further processing. There are several types of request handlers the event will be forwarded:
SnmpGetRequestHandler - handles GetRequest-PDU
SnmpSetRequestHandler - handles SetRequest-PDU
SnmpTrapHandler - handles Trap-PDU

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

Field Summary
private static SnmpSessionEventListenerImpl instance
           
private  java.util.ArrayList snmpOptListeners
           
 
Constructor Summary
private SnmpSessionEventListenerImpl()
          Constructs the SnmpSessionEventListenerImpl object.
 
Method Summary
static SnmpSessionEventListenerImpl getInstance()
           
 void handleSession(SnmpSessionEvent event)
          Invoked to handle the SnmpSessionEvent.
private  void notifySnmpOptListeners(SnmpSessionEvent event)
          Notifies the appropriate the handler to handle the request.
private  void setupEventListeners()
          Setup event listeners to handle the incoming requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static SnmpSessionEventListenerImpl instance

snmpOptListeners

private java.util.ArrayList snmpOptListeners
Constructor Detail

SnmpSessionEventListenerImpl

private SnmpSessionEventListenerImpl()
Constructs the SnmpSessionEventListenerImpl object.

Method Detail

handleSession

public void handleSession(SnmpSessionEvent event)
Invoked to handle the SnmpSessionEvent. The method forwards the event to the appropriate handler for further processing.

Specified by:
handleSession in interface SnmpSessionEventListener
Parameters:
event - The SnmpSessionEvent object

notifySnmpOptListeners

private void notifySnmpOptListeners(SnmpSessionEvent event)
Notifies the appropriate the handler to handle the request.


setupEventListeners

private void setupEventListeners()
Setup event listeners to handle the incoming requests.


getInstance

public static SnmpSessionEventListenerImpl getInstance()

MySnmpCrawler API