org.pentaho.platform.api.engine
Interface ISubscriptionScheduler

All Known Implementing Classes:
QuartzSubscriptionScheduler

Deprecated.

@Deprecated
public interface ISubscriptionScheduler

Interface class between the subscription repository and the implementation of the scheduler.

Author:
dmoran

Method Summary
 IScheduledJob deleteJob(String jobName)
          Deprecated. Delete the job.
 IScheduledJob executeJob(String jobName)
          Deprecated. Execute the job.
 String getCronSummary(String cron)
          Deprecated.  
 IScheduledJob getScheduledJob(String schedRef)
          Deprecated. Returns the IScheduledJob for the passed in schedule reference from the scheduling system
 Map<String,IScheduledJob> getScheduledJobMap()
          Deprecated.  
 List getScheduledJobs()
          Deprecated. Returns a List of all IScheduledJobs that are currently in the subscription scheduling system
 int getSchedulerState()
          Deprecated.  
 IScheduledJob pauseJob(String jobName)
          Deprecated. Pause the job.
 void pauseScheduler()
          Deprecated.  
 IScheduledJob resumeJob(String jobName)
          Deprecated. Resume the job.
 void resumeScheduler()
          Deprecated.  
 IScheduledJob scheduleJob(ISchedule schedule)
          Deprecated.  
 List syncSchedule(List newSchedules)
          Deprecated. Synchronizes schedules between the subscription repos and the scheduling system
 IScheduledJob syncSchedule(String oldScheduleReference, ISchedule newSchedule)
          Deprecated. Synchronizes schedules between the subscription repos and the scheduling system
 

Method Detail

syncSchedule

IScheduledJob syncSchedule(String oldScheduleReference,
                           ISchedule newSchedule)
                           throws SubscriptionSchedulerException
Deprecated. 
Synchronizes schedules between the subscription repos and the scheduling system

Parameters:
oldSchedule - The name of the schedule to modify or delete. If null, then the operation is treated as an add.
newSchedule - The schedule to modify or add. If null, then the operation is treated as an delete.
Returns:
true if successfull
Throws:
SubscriptionSchedulerException

syncSchedule

List syncSchedule(List newSchedules)
                  throws Exception
Deprecated. 
Synchronizes schedules between the subscription repos and the scheduling system

Parameters:
newSchedules - The list of schedules that should exist. Any schedules not in the list should be deleted
Returns:
list of exception messages
Throws:
Exception

getScheduledJobs

List getScheduledJobs()
Deprecated. 
Returns a List of all IScheduledJobs that are currently in the subscription scheduling system


getScheduledJob

IScheduledJob getScheduledJob(String schedRef)
                              throws SubscriptionSchedulerException
Deprecated. 
Returns the IScheduledJob for the passed in schedule reference from the scheduling system

Throws:
Exception
SubscriptionSchedulerException

getScheduledJobMap

Map<String,IScheduledJob> getScheduledJobMap()
                                             throws Exception
Deprecated. 
Throws:
Exception

pauseJob

IScheduledJob pauseJob(String jobName)
                       throws Exception
Deprecated. 
Pause the job. NOTE: in the quartz implementation, the value of the jobName parameter should be the trigger name associated with the job to be paused.

Parameters:
jobName -
Returns:
Throws:
Exception

resumeJob

IScheduledJob resumeJob(String jobName)
                        throws Exception
Deprecated. 
Resume the job. NOTE: in the quartz implementation, the value of the jobName parameter should be the trigger name associated with the job to be resumed.

Parameters:
jobName -
Returns:
Throws:
Exception

executeJob

IScheduledJob executeJob(String jobName)
                         throws Exception
Deprecated. 
Execute the job. NOTE: in the quartz implementation, the value of the jobName parameter should be the trigger name associated with the job to be executed.

Parameters:
jobName -
Returns:
Throws:
Exception

deleteJob

IScheduledJob deleteJob(String jobName)
                        throws Exception
Deprecated. 
Delete the job. NOTE: in the quartz implementation, the value of the jobName parameter should be the trigger name associated with the job to be deleted.

Parameters:
jobName -
Returns:
Throws:
Exception

scheduleJob

IScheduledJob scheduleJob(ISchedule schedule)
                          throws Exception
Deprecated. 
Throws:
Exception

getSchedulerState

int getSchedulerState()
                      throws Exception
Deprecated. 
Throws:
Exception

pauseScheduler

void pauseScheduler()
                    throws Exception
Deprecated. 
Throws:
Exception

resumeScheduler

void resumeScheduler()
                     throws Exception
Deprecated. 
Throws:
Exception

getCronSummary

String getCronSummary(String cron)
                      throws Exception
Deprecated. 
Throws:
Exception