public abstract class ChildServiceSupport extends ServiceSupport
Service
s.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
ChildServiceSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChildService(Object childService) |
protected boolean |
removeChildService(Object childService) |
void |
shutdown()
Important: You should override the lifecycle methods that start with do, eg
ServiceSupport.doStart() ,
ServiceSupport.doStop() , etc. |
void |
start()
Important: You should override the lifecycle methods that start with do, eg
ServiceSupport.doStart() ,
ServiceSupport.doStop() , etc. |
void |
start(boolean startChildren) |
void |
stop()
Important: You should override the lifecycle methods that start with do, eg
ServiceSupport.doStart() ,
ServiceSupport.doStop() , etc. |
doResume, doShutdown, doStart, doStop, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, suspend
public ChildServiceSupport()
public void start() throws Exception
ServiceSupport
ServiceSupport.doStart()
,
ServiceSupport.doStop()
, etc. where you implement your logic. The methods ServiceSupport.start()
, ServiceSupport.stop()
should
NOT be overriden as they are used internally to keep track of the state of this service and properly
invoke the operation in a safe manner.start
in interface Service
start
in class ServiceSupport
Exception
- is thrown if starting failedpublic void stop() throws Exception
ServiceSupport
ServiceSupport.doStart()
,
ServiceSupport.doStop()
, etc. where you implement your logic. The methods ServiceSupport.start()
, ServiceSupport.stop()
should
NOT be overriden as they are used internally to keep track of the state of this service and properly
invoke the operation in a safe manner.stop
in interface Service
stop
in class ServiceSupport
Exception
- is thrown if stopping failedpublic void shutdown() throws Exception
ServiceSupport
ServiceSupport.doStart()
,
ServiceSupport.doStop()
, etc. where you implement your logic. The methods ServiceSupport.start()
, ServiceSupport.stop()
should
NOT be overriden as they are used internally to keep track of the state of this service and properly
invoke the operation in a safe manner.shutdown
in interface ShutdownableService
shutdown
in class ServiceSupport
Exception
- thrown if shutting down failedprotected void addChildService(Object childService)
protected boolean removeChildService(Object childService)
Apache Camel