org.jboss.soa.esb.listeners
Class ScheduleListener

java.lang.Object
  extended by org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
      extended by org.jboss.soa.esb.listeners.lifecycle.AbstractScheduledManagedLifecycle
          extended by org.jboss.soa.esb.listeners.ScheduleListener
All Implemented Interfaces:
java.io.Serializable, ManagedLifecycle

public class ScheduleListener
extends AbstractScheduledManagedLifecycle

ESB Schedule listener.

Author:
tom.fennelly@jboss.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
PARAM_TERMINATION_PERIOD
 
Constructor Summary
ScheduleListener(ConfigTree config)
          Construct the managed lifecycle.
 
Method Summary
protected  void doScheduledDestroy()
          Handle the scheduled destroy of the managed instance.
 void onSchedule()
          On schedule event processor implementation.
 
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractScheduledManagedLifecycle
doDestroy, doInitialise, doStart, doStop
 
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

ScheduleListener

public ScheduleListener(ConfigTree config)
                 throws ConfigurationException
Construct the managed lifecycle.

Parameters:
config - The configuration associated with this instance.
Throws:
ConfigurationException - for configuration errors during initialisation.
Method Detail

onSchedule

public void onSchedule()
                throws SchedulingException
On schedule event processor implementation.

Specified by:
onSchedule in class AbstractScheduledManagedLifecycle
Throws:
SchedulingException - Error processing scheduled event.

doScheduledDestroy

protected void doScheduledDestroy()
                           throws ManagedLifecycleException
Description copied from class: AbstractScheduledManagedLifecycle
Handle the scheduled destroy of the managed instance.

Overrides:
doScheduledDestroy in class AbstractScheduledManagedLifecycle
Throws:
ManagedLifecycleException - for errors while destroying.