|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerDaemonContainer
A server daemon container encapsulates a group of ServerDaemons.
| Method Summary | |
|---|---|
ServerDaemon |
addDaemon(String name,
ServerDaemon serverDaemon)
Adds a recognised daemon to this container and initializes it through its init() method. |
ServerDaemon |
addDaemon(String name,
ServerDaemon daemon,
boolean autoStart)
Adds a recognised daemon to this container, initializes it through its init() method and possibly schedules it to be automatically started. |
void |
autoStartDaemons()
Starts daemons which have been scheduled to be automatically started. |
void |
beginAtom()
Called by a server daemon to indicate that it is about to begin processing a new atom which should have its log messages grouped together. |
void |
closeLog()
Closes the log of the currently executing server daemon. |
StartResponse |
doStartCommand(String name)
Start a local daemon by calling its start method(). |
StopResponse |
doStopCommand(String name)
Stop a local daemon by calling its stop method(). |
void |
endAtom()
Called by a server daemon to indicate that it has completed processing an atom which should have its log messages grouped together. |
Set |
getKilledDaemonNames()
|
Set |
getRunningDaemonNames()
|
void |
killDaemonsImmediate()
|
void |
resetClock()
Resets the clock on a running daemon. |
void |
shutdown()
Terminates all running daemons by calling stop(), then finalizes all registered daemons through their destroy() methods. |
StartResponse |
startDaemon(String name)
Starts a daemon running on the server by calling its start() method. |
StopResponse |
stopDaemon(String name)
Stops a daemon running on the server by calling its stop() method. |
| Method Detail |
|---|
void autoStartDaemons()
ServerDaemon addDaemon(String name,
ServerDaemon serverDaemon)
This method is called by external clients to inform the container of each daemon it needs to service.
name - a name through which external clients may refer to the daemon.daemon - the daemon object.
ServerDaemon addDaemon(String name,
ServerDaemon daemon,
boolean autoStart)
This method is called by external clients to inform the container of each daemon it needs to service.
name - a name through which external clients may refer to the daemon.daemon - the daemon object.autoStart - true to schedule the daemon to be automatically started,
false otherwise.
StartResponse startDaemon(String name)
throws EJBException
name - the name of the daemon to start.
EJBException - the daemon refused to start, the current user
has insufficient priveleges to start the daemon or a communication
breakdown occurred.
StopResponse stopDaemon(String name)
throws EJBException
name - the name of the daemon to stop.
EJBException - the daemon refused to stop, the current user
has insufficient priveleges to stop the daemon or a communication
breakdown occurred.StartResponse doStartCommand(String name)
This method is not intended to be used by external clients. Call startDaemon() instead.
name - the name of the daemon to stop.
EJBException - the daemon refused to stop, the current user
has insufficient priveleges to stop the daemon or a communication
breakdown occurred.StopResponse doStopCommand(String name)
This method is not intended to be used by external clients. Call stopDaemon() instead.
name - the name of the daemon to stop.
EJBException - the daemon refused to stop, the current user
has insufficient priveleges to stop the daemon or a communication
breakdown occurred.void resetClock()
void beginAtom()
void endAtom()
void shutdown()
void closeLog()
void killDaemonsImmediate()
Set getKilledDaemonNames()
Set getRunningDaemonNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||