|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.service.AbsServiceImpl
Abstract implementation of a Service
| Field Summary |
| Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
AbsServiceImpl()
|
|
| Method Summary | |
protected abstract void |
doInit(javax.naming.Context ctx)
Abstract initialization method to be implemented by sub-classes |
protected abstract void |
doStart()
Abstract start-up method to be implemented by sub-classes |
protected abstract void |
doStop()
Abstract method for service stopping to be implemented by sub-classes |
java.lang.String |
getDomainName()
Return the domain's name of this service. |
java.lang.String |
getJonasServerName()
Return the JOnAS server's name of this service. |
java.lang.String |
getName()
Returns the service's name |
void |
init(javax.naming.Context ctx)
Initialize the service |
boolean |
isStarted()
Returns true if the service is started, false otherwise |
void |
setName(java.lang.String name)
Set the service's name |
void |
start()
Start the service |
void |
stop()
Stop the service |
| Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbsServiceImpl()
| Method Detail |
public void init(javax.naming.Context ctx)
throws ServiceException
init in interface Servicectx - configuration of the service
ServiceException - service initialization failed
public void start()
throws ServiceException
start in interface ServiceServiceException - service start-up failed
public void stop()
throws ServiceException
stop in interface ServiceServiceException - service stopping failedpublic boolean isStarted()
isStarted in interface Servicepublic java.lang.String getName()
getName in interface Servicepublic void setName(java.lang.String name)
setName in interface Servicename - the name to setpublic java.lang.String getDomainName()
public java.lang.String getJonasServerName()
protected abstract void doInit(javax.naming.Context ctx)
throws ServiceException
ctx - configuration of the service
ServiceException - service initialization failed
protected abstract void doStart()
throws ServiceException
ServiceException - service start-up failed
protected abstract void doStop()
throws ServiceException
ServiceException - service stopping failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||