Package org.opennms.netmgt.scriptd
Class Scriptd
- java.lang.Object
-
- org.opennms.netmgt.daemon.AbstractServiceDaemon
-
- org.opennms.netmgt.scriptd.Scriptd
-
- All Implemented Interfaces:
Fiber
,PausableFiber
,SpringServiceDaemon
,ServiceDaemon
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public final class Scriptd extends AbstractServiceDaemon
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.- Author:
- Jim Doble, OpenNMS.org
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from interface org.opennms.core.fiber.Fiber
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
-
Fields inherited from interface org.opennms.core.fiber.PausableFiber
PAUSE_PENDING, PAUSED, RESUME_PENDING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Scriptd
getInstance()
Returns the singular instance of the Scriptd daemon.protected void
onInit()
Initialize the Scriptd service.protected void
onStart()
onStartprotected void
onStop()
onStop-
Methods inherited from class org.opennms.netmgt.daemon.AbstractServiceDaemon
afterPropertiesSet, destroy, getName, getStatus, getStatusText, init, isPaused, isRunning, isStarting, onPause, onResume, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
onInit
protected void onInit()
Initialize the Scriptd service.- Specified by:
onInit
in classAbstractServiceDaemon
-
onStart
protected void onStart()
onStart
- Overrides:
onStart
in classAbstractServiceDaemon
-
onStop
protected void onStop()
onStop
- Overrides:
onStop
in classAbstractServiceDaemon
-
getInstance
public static Scriptd getInstance()
Returns the singular instance of the Scriptd daemon. There can be only one instance of this service per virtual machine.- Returns:
- The singular instance.
-
-