|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a Service. Objects which implement this interface must have a public constructor with a string parameter which is the name of the service.
Method Summary | |
java.lang.String |
getName()
|
void |
init(javax.naming.Context ctx)
Initialize the service |
boolean |
isStarted()
|
void |
setName(java.lang.String name)
Set the service's name |
void |
start()
Start the service |
void |
stop()
Stop the service |
Method Detail |
public void init(javax.naming.Context ctx) throws ServiceException
ctx
- configuration of the service
ServiceException
- when init fails.public void start() throws ServiceException
ServiceException
- when start fails.public void stop() throws ServiceException
ServiceException
- when stop fails.public boolean isStarted()
public void setName(java.lang.String name)
name
- the service's namepublic java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |