|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A startable service is a service that can be started and stopped. This is the final interface regarded by the framework in the service startup sequence. If a service implements this interface it should change it's status to ready if the startup succeeds.
Service implementations should take care not to block any mehtods on this interface since this might seriously slow down the framework responsiveness.
A service must take every possible step to honor the stop method. Tasks performed by
the service which might be long running should be interrupted. A service that want notification on beforehand
of shutdowns should implement the ShutdownListener interface.
Status| Method Summary | |
void |
start()
Start execution of this service. |
void |
stop()
End execution. |
| Method Detail |
public void start()
throws UnavailableException
LOADED / INITIALIZED or STOPPED status. This method indicates that the framework is ready
to run the service. As a concequence of this call a server should proceed to READY status.
UnavailableException - If the Service encouters a serious failurepublic void stop()
ShutdownListener interface to
signal to the framework that it wishes to be informed about future stop events in advance.
This method is guarrantied to be followed by either a call to start(),
unload or Initializable.destroy().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||