|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--snmp.session.SnmpSessionEventListenerImpl
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
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 |
private static SnmpSessionEventListenerImpl instance
private java.util.ArrayList snmpOptListeners
Constructor Detail |
private SnmpSessionEventListenerImpl()
Method Detail |
public void handleSession(SnmpSessionEvent event)
handleSession
in interface SnmpSessionEventListener
event
- The SnmpSessionEvent objectprivate void notifySnmpOptListeners(SnmpSessionEvent event)
private void setupEventListeners()
public static SnmpSessionEventListenerImpl getInstance()
|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |