|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.objectweb.jonas.management.ReconfigDispatcher org.objectweb.jonas.service.AbsServiceImpl
public abstract class 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 Service
ctx
- configuration of the service
ServiceException
- service initialization failedpublic void start() throws ServiceException
start
in interface Service
ServiceException
- service start-up failedpublic void stop() throws ServiceException
stop
in interface Service
ServiceException
- service stopping failedpublic boolean isStarted()
isStarted
in interface Service
public java.lang.String getName()
getName
in interface Service
public void setName(java.lang.String name)
setName
in interface Service
name
- 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 failedprotected abstract void doStart() throws ServiceException
ServiceException
- service start-up failedprotected 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 |