|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.scheduler.QuartzSubscriptionScheduler
public class QuartzSubscriptionScheduler
Provides the interface between the Quartz Scheduling component and the Subscription Subsystem
Field Summary | |
---|---|
static String |
GROUP_NAME
|
Constructor Summary | |
---|---|
QuartzSubscriptionScheduler()
|
Method Summary | |
---|---|
static org.quartz.Trigger |
createTriggerFromSchedule(ISchedule sched)
|
IScheduledJob |
deleteJob(String triggerName)
Delete the job. |
IScheduledJob |
executeJob(String jobName)
Execute the job. |
String |
getCronSummary(String cron)
|
IScheduledJob |
getScheduledJob(String schedRef)
Returns the IScheduledJob for the passed in schedule reference from the scheduling system |
Map<String,IScheduledJob> |
getScheduledJobMap()
NOTE: doesn't actually throw any checked exceptions |
List<QuartzScheduledJob> |
getScheduledJobs()
Returns a List of all IScheduledJobs that are currently in the subscription scheduling system |
int |
getSchedulerState()
|
IScheduledJob |
pauseJob(String jobName)
Pause the job. |
void |
pauseScheduler()
|
IScheduledJob |
resumeJob(String jobName)
Resume the job. |
void |
resumeScheduler()
|
IScheduledJob |
scheduleJob(ISchedule schedule)
|
List |
syncSchedule(List newSchedules)
Returns a list of exception messages |
IScheduledJob |
syncSchedule(String oldScheduleReference,
ISchedule newSchedule)
Synchronizes The Scheduler schedule with the subscription schedule. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String GROUP_NAME
Constructor Detail |
---|
public QuartzSubscriptionScheduler()
Method Detail |
---|
public IScheduledJob syncSchedule(String oldScheduleReference, ISchedule newSchedule) throws SubscriptionSchedulerException
syncSchedule
in interface ISubscriptionScheduler
newSchedule
- The schedule to modify or add. If null, then the operation is
treated as an delete.
SubscriptionSchedulerException
public List syncSchedule(List newSchedules) throws Exception
syncSchedule
in interface ISubscriptionScheduler
newSchedules
- The list of schedules that should exist. Any schedules not in the
list should be deleted
Exception
public Map<String,IScheduledJob> getScheduledJobMap() throws org.quartz.SchedulerException, SubscriptionSchedulerException
getScheduledJobMap
in interface ISubscriptionScheduler
SchedulerException
SubscriptionSchedulerException
org.quartz.SchedulerException
public IScheduledJob getScheduledJob(String schedRef) throws SubscriptionSchedulerException
ISubscriptionScheduler
getScheduledJob
in interface ISubscriptionScheduler
SubscriptionSchedulerException
public List<QuartzScheduledJob> getScheduledJobs()
ISubscriptionScheduler
getScheduledJobs
in interface ISubscriptionScheduler
public IScheduledJob pauseJob(String jobName) throws Exception
ISubscriptionScheduler
pauseJob
in interface ISubscriptionScheduler
Exception
public IScheduledJob resumeJob(String jobName) throws Exception
ISubscriptionScheduler
resumeJob
in interface ISubscriptionScheduler
Exception
public IScheduledJob executeJob(String jobName) throws Exception
ISubscriptionScheduler
executeJob
in interface ISubscriptionScheduler
Exception
public IScheduledJob deleteJob(String triggerName) throws Exception
ISubscriptionScheduler
deleteJob
in interface ISubscriptionScheduler
Exception
public IScheduledJob scheduleJob(ISchedule schedule) throws Exception
scheduleJob
in interface ISubscriptionScheduler
Exception
public int getSchedulerState() throws Exception
getSchedulerState
in interface ISubscriptionScheduler
Exception
public void pauseScheduler() throws Exception
pauseScheduler
in interface ISubscriptionScheduler
Exception
public void resumeScheduler() throws Exception
resumeScheduler
in interface ISubscriptionScheduler
Exception
public String getCronSummary(String cron) throws Exception
getCronSummary
in interface ISubscriptionScheduler
Exception
public static org.quartz.Trigger createTriggerFromSchedule(ISchedule sched) throws ParseException
ParseException
- if the schedule is a cron schedule, and the cron string is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |