org.jboss.soa.esb.schedule
Class ScheduleProvider
java.lang.Object
org.jboss.soa.esb.schedule.ScheduleProvider
public class ScheduleProvider
- extends java.lang.Object
Schedule Provider.
Manages all of the configured scheduled jobs and their listeners.
- Author:
- Daniel Bevenius, tom.fennelly@jboss.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScheduleProvider
public ScheduleProvider(java.util.Properties properties,
java.util.List<Schedule> schedules)
throws ConfigurationException
- Throws:
ConfigurationException
addListener
public void addListener(ScheduledEventListener listener,
java.lang.String scheduleId)
throws SchedulingException,
ConfigurationException
- Throws:
SchedulingException
ConfigurationException
addListener
public void addListener(ScheduledEventListener listener,
long scheduleFrequency)
throws SchedulingException
- Throws:
SchedulingException
start
public void start()
throws SchedulingException
- Start the scheduler.
- Throws:
SchedulingException
- Start failed.
standby
public void standby()
throws SchedulingException
- Standby the scheduler.
Restart the scheduler through the
start()
method.
- Throws:
SchedulingException
- Standby failed.
stop
public void stop()
throws SchedulingException
- Stop the scheduler.
- Throws:
SchedulingException
- Stop failed.