|
||||||||||
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.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.service.AbsServiceImpl
public abstract class AbsServiceImpl
Abstract implementation of a Service
Field Summary |
---|
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
AbsServiceImpl()
|
Method Summary | |
---|---|
protected abstract void |
doInit(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 |
String |
getDomainName()
Return the domain's name of this service. |
String |
getJonasServerName()
Return the JOnAS server's name of this service. |
String |
getName()
Returns the service's name |
void |
init(Context ctx)
Initialize the service |
boolean |
isStarted()
Returns true if the service is started, false otherwise |
void |
setName(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.reconfig.emitter.ReconfigEmitter |
---|
initLogger, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, 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(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 String getName()
getName
in interface Service
public void setName(String name)
setName
in interface Service
name
- the name to setpublic String getDomainName()
public String getJonasServerName()
protected abstract void doInit(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 |