|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a protocol for serviceable objects. A serviceable object is one that can be controlled through start, stop etc.
BasicService
Method Summary | |
java.lang.String |
getName()
Return the name of the service |
ServiceState |
getState()
Return the current state of the service |
void |
restart()
Convenience method for restarting the service. |
void |
start()
Start the service. |
void |
stop()
Stop the service. |
Method Detail |
public void start() throws ServiceException
ServiceException
- if the service fails to start, or is already
runningpublic void stop() throws ServiceException
ServiceException
- if the service fails to stop, or is already
stoppedpublic void restart() throws ServiceException
ServiceException
- if the service fails to restartpublic ServiceState getState()
public java.lang.String getName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |