|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.actiond.Actiond
This class is used to represent the auto action execution service. When an event is received by this service that has one of either a notification, trouble ticket, or auto action then a process is launched to execute the appropriate commands.
| Field Summary | |
private static java.lang.String |
LOG4J_CATEGORY
The log4j category used to log debug messsages and statements. |
private BroadcastEventProcessor |
m_eventReader
The broadcast event receiver. |
private Executor |
m_execution
The execution launcher and reaper |
private static Actiond |
m_singleton
The singleton instance. |
private int |
m_status
The current status of this fiber |
| 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 | |
private |
Actiond()
Constructs a new Action execution daemon. |
| Method Summary | |
static Actiond |
getInstance()
Returns the singular instance of the actiond daemon. |
java.lang.String |
getName()
Returns the name of the service. |
int |
getStatus()
Returns the current status of the service. |
void |
init()
|
void |
pause()
Pauses the service if its currently running |
void |
resume()
Resumes the service if its currently paused |
void |
start()
Starts the Actiond service. |
void |
stop()
Stops the currently running service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String LOG4J_CATEGORY
private static final Actiond m_singleton
private Executor m_execution
private BroadcastEventProcessor m_eventReader
private int m_status
| Constructor Detail |
private Actiond()
| Method Detail |
public void init()
public void start()
start in interface Fiberjava.lang.IllegalStateException - Thrown if the service
is already running.public void stop()
stop in interface Fiberpublic int getStatus()
getStatus in interface Fiberpublic java.lang.String getName()
getName in interface Fiberpublic void pause()
pause in interface PausableFiberpublic void resume()
resume in interface PausableFiberpublic static Actiond getInstance()
|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||