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()
Shutdown the service, which means it cannot be started again.
|
void |
start()
Starts the service
|
void |
start(boolean startChildren) |
void |
stop()
Stops the service
|
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
Service
start
in interface Service
start
in class ServiceSupport
Exception
- is thrown if starting failedpublic void stop() throws Exception
Service
stop
in interface Service
stop
in class ServiceSupport
Exception
- is thrown if stopping failedpublic void shutdown() throws Exception
ShutdownableService
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