org.rhq.plugins.snmptrapd
Class SnmpTrapEventPoller

java.lang.Object
  extended by org.rhq.plugins.snmptrapd.SnmpTrapEventPoller
All Implemented Interfaces:
EventListener, EventPoller, org.snmp4j.CommandResponder

public class SnmpTrapEventPoller
extends Object
implements EventPoller, org.snmp4j.CommandResponder

Polls the individual traps

Author:
Heiko W. Rupp

Constructor Summary
SnmpTrapEventPoller()
           
SnmpTrapEventPoller(String severityOidString)
           
 
Method Summary
 String getEventType()
           
 Set<org.rhq.core.domain.event.Event> poll()
           
 void processPdu(org.snmp4j.CommandResponderEvent cre)
          Callback from the Snmp lib.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpTrapEventPoller

public SnmpTrapEventPoller()

SnmpTrapEventPoller

public SnmpTrapEventPoller(String severityOidString)
Method Detail

getEventType

public String getEventType()
Specified by:
getEventType in interface EventPoller

poll

public Set<org.rhq.core.domain.event.Event> poll()
Specified by:
poll in interface EventPoller

processPdu

public void processPdu(org.snmp4j.CommandResponderEvent cre)
Callback from the Snmp lib. Will be called on each incoming trap

Specified by:
processPdu in interface org.snmp4j.CommandResponder


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.