|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--snmp.message.handler.SnmpTrapHandler
This class provides the required operations to handle SNMP Trap-PDU.
| Field Summary | |
private static SnmpTrapHandler |
instance
|
private static int |
TRAP
|
| Constructor Summary | |
private |
SnmpTrapHandler()
Constructs the SnmpTrapHandler object |
| Method Summary | |
int |
getHandlerType()
Gets the type of the handler. |
static SnmpTrapHandler |
getInstance()
Gets the singleton object of the SnmpTrapHandler. |
void |
handleSession(SnmpSessionEvent event)
Invoked to handle the session when the SNMP PDU is "Trap-PDU". |
private void |
handleTrap(SnmpSessionEvent event)
|
boolean |
isHandler(int type)
This method returns true if it is the right listener to handle the message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final int TRAP
private static SnmpTrapHandler instance
| Constructor Detail |
private SnmpTrapHandler()
| Method Detail |
public void handleSession(SnmpSessionEvent event)
handleSession in interface SnmpSessionEventListenerevent - The SnmpSessionEvent objectpublic boolean isHandler(int type)
isHandler in interface SnmpMessageHandlertype - Type of the operationpublic int getHandlerType()
getHandlerType in interface SnmpMessageHandlerprivate void handleTrap(SnmpSessionEvent event)
public static SnmpTrapHandler getInstance()
|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||