|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
org.jboss.soa.esb.listeners.lifecycle.AbstractScheduledManagedLifecycle
public abstract class AbstractScheduledManagedLifecycle
This class provides threaded support for a managed instance.
Field Summary |
---|
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
---|
PARAM_TERMINATION_PERIOD |
Constructor Summary | |
---|---|
protected |
AbstractScheduledManagedLifecycle(ConfigTree config)
Construct the threaded managed lifecycle. |
Method Summary | |
---|---|
protected void |
doDestroy()
Handle the destroy of the managed instance. |
protected void |
doInitialise()
Handle the initialisation of the managed instance. |
protected void |
doScheduledDestroy()
Handle the scheduled destroy of the managed instance. |
protected void |
doStart()
Handle the start of the managed instance. |
protected void |
doStop()
Handle the stop of the managed instance. |
protected abstract void |
onSchedule()
Execute the scheduled event. |
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
---|
addManagedLifecycleEventListener, changeState, destroy, getConfig, getState, getTerminationPeriod, initialise, removeManagedLifecycleEventListener, start, stop, waitUntilDestroyed, waitUntilDestroyed, waitUntilNotState, waitUntilState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractScheduledManagedLifecycle(ConfigTree config) throws ConfigurationException
config
- The configuration associated with this instance.
ConfigurationException
- for configuration errors during initialisation.Method Detail |
---|
protected void doInitialise() throws ManagedLifecycleException
doInitialise
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while initialisation.protected void doStart() throws ManagedLifecycleException
doStart
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while starting.protected abstract void onSchedule() throws SchedulingException
SchedulingException
protected void doStop() throws ManagedLifecycleException
doStop
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while stopping.protected final void doDestroy() throws ManagedLifecycleException
doDestroy
in class AbstractManagedLifecycle
ManagedLifecycleException
- for errors while destroying.protected void doScheduledDestroy() throws ManagedLifecycleException
ManagedLifecycleException
- for errors while destroying.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |