|
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.scriptd.Scriptd
This class implements a script execution service. This service subscribes to all events, and passes received events to the set of configured scripts. This services uses the Bean Scripting Framework (BSF) in order to allow scripts to be written in a variety of registered languages.
| 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 |
private static Scriptd |
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 |
Scriptd()
Constructs a new Script execution daemon. |
| Method Summary | |
static Scriptd |
getInstance()
Returns the singular instance of the Scriptd daemon. |
java.lang.String |
getName()
Returns the name of the Scriptd service. |
int |
getStatus()
Returns the current status of the Scriptd service. |
void |
init()
Initialize the Scriptd service. |
void |
pause()
Pauses the Scriptd service if its currently running |
void |
resume()
Resumes the Scriptd service if its currently paused |
void |
start()
Starts the Scriptd service. |
void |
stop()
Stops the Scriptd 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 Scriptd m_singleton
private Executor m_execution
private BroadcastEventProcessor m_eventReader
private int m_status
| Constructor Detail |
private Scriptd()
| 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 Scriptd getInstance()
|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||