|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Serviceable
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 |
---|
void start() throws ServiceException
ServiceException
- if the service fails to start, or is already
runningvoid stop() throws ServiceException
ServiceException
- if the service fails to stop, or is already
stoppedvoid restart() throws ServiceException
ServiceException
- if the service fails to restartServiceState getState()
java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |