|
|||||||||||
| 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
running
public void stop()
throws ServiceException
ServiceException - if the service fails to stop, or is already
stopped
public 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 | ||||||||||