|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.daemon.controller.DmnController
public abstract class DmnController
The daemon controller.
This class is the base class for all daemon controller classes.
Method Summary | |
---|---|
IDmnControllerEventHandler |
getEventHandler()
Get the controller event handler. |
void |
setEventHandler(IDmnControllerEventHandler eventHandler)
Set the controller event handler. |
void |
setLauncher(IDmnControllerLauncher launcher)
Set the controller launcher interface |
void |
start()
Start the daemon. |
void |
stop()
Stop the daemon. |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void setEventHandler(IDmnControllerEventHandler eventHandler)
eventHandler
- The event handler to set.This method sets the controller event handler. The daemon controller dispatches its events through this registered handler.
The daemon event handler can only be set before starting the daemon. An
attempt to invoke this method after the daemon has been started will
result in an IllegalStateException
being thrown.
public final IDmnControllerEventHandler getEventHandler()
This method gets the installed controller event handler.
public final void setLauncher(IDmnControllerLauncher launcher)
launcher
- The launcher interface to set.This method sets the interface of the daemon launcher. The launcher interface is the interface through which the daemon communicates back to the launcher to query for information or perform some tasks.
The daemon launcher interface can only be set before starting the daemon.
An attempt to invoke this method after the daemon has been started will
result in an IllegalStateException
being thrown.
public final void start()
This method starts the daemon. The method performs all initializations,
kicks off the daemon operation and does not return control until the
daemon is stopped via stop()
.
This method first initializes the thread manager associated with this
daemon, invokes the init()
method, dispatches the init completion
event and then enters the thread manager's start method. Unless an exception
is thrown, this method will not return until a corresponding stop()
is invoked.
public final void stop()
This method stops the daemon. The method returns after the daemon operation has successfully been stopped.
This method invokes the shutdown()
method and then stops the
thread manager. That will stop all operating threads in the daemon.
This method will return after the daemon has been successfully stopped.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |