|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.daemon.AbstractServiceDaemon
org.opennms.netmgt.trapd.Trapd
public class Trapd
The Trapd listens for SNMP traps on the standard port(162). Creates a SnmpTrapSession and implements the SnmpTrapHandler to get callbacks when traps are received
The received traps are converted into XML and sent to eventd
Note: Trapd is a PausableFiber so as to receive control events. However, a 'pause' on Trapd has no impact on the receiving and processing of traps
| Field Summary |
|---|
| Fields inherited from interface org.opennms.core.fiber.PausableFiber |
|---|
PAUSE_PENDING, PAUSED, RESUME_PENDING |
| Fields inherited from interface org.opennms.core.fiber.Fiber |
|---|
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED |
| Constructor Summary | |
|---|---|
Trapd()
Constructs a new Trapd object that receives and forwards trap messages via JSDT. |
|
| Method Summary | |
|---|---|
org.opennms.netmgt.dao.EventDao |
getEventDao()
|
static Trapd |
getInstance()
Returns the singular instance of the trapd daemon. |
int |
getStatus()
Returns the current status of the service. |
protected void |
onInit()
|
protected void |
onPause()
|
protected void |
onResume()
|
protected void |
onStart()
|
protected void |
onStop()
|
void |
setEventDao(org.opennms.netmgt.dao.EventDao eventDao)
|
| Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon |
|---|
afterPropertiesSet, getName, getStatusText, init, isPaused, isRunning, isStarting, isStartPending, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Trapd()
Constructs a new Trapd object that receives and forwards trap messages via JSDT. The session is initialized with the default client name of OpenNMS.trapd. The trap session is started on the default port, as defined by the SNMP libarary.
SnmpTrapSession| Method Detail |
|---|
protected void onInit()
onInit in class AbstractServiceDaemonprotected void onStart()
onStart in class AbstractServiceDaemonprotected void onPause()
onPause in class AbstractServiceDaemonprotected void onResume()
onResume in class AbstractServiceDaemonprotected void onStop()
onStop in class AbstractServiceDaemonpublic int getStatus()
getStatus in interface org.opennms.core.fiber.FibergetStatus in class AbstractServiceDaemonpublic static Trapd getInstance()
public org.opennms.netmgt.dao.EventDao getEventDao()
public void setEventDao(org.opennms.netmgt.dao.EventDao eventDao)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||