org.pentaho.platform.scheduler
Class SchedulerHelper
java.lang.Object
org.pentaho.platform.scheduler.SchedulerHelper
public class SchedulerHelper
- extends Object
Method Summary |
static void |
createCronJob(IPentahoSession session,
String solutionName,
String path,
String actionName,
String cronExpression)
|
static void |
createCronJob(IPentahoSession session,
String solutionName,
String path,
String actionName,
String triggerName,
String group,
String description,
String cronExpression)
|
static CronTrigger |
createCronTrigger(String triggerName,
String triggerGroupName,
String strStartDate,
String strEndDate,
String cronString)
|
static SimpleTrigger |
createRepeatTrigger(String triggerName,
String triggerGroupName,
Date startDate,
Date endDate,
int repeatCount,
int repeatInterval)
|
static SimpleTrigger |
createRepeatTrigger(String triggerName,
String triggerGroupName,
String strStartDate,
String strEndDate,
String repeatCount,
String strRepeatInterval)
|
static void |
createSimpleTriggerJob(IPentahoSession session,
String solutionName,
String path,
String actionName,
String triggerName,
String group,
String description,
Date strStartDate,
Date strEndDate,
int repeatCount,
int strRepeatInterval)
|
static void |
deleteJob(IPentahoSession session,
String jobName,
String jobGroup)
|
static void |
executeJobNow(String jobName,
String jobGroup)
|
static List<IJobSchedule> |
getAllSchedules(IPentahoSession session)
|
static List<IJobSchedule> |
getMySchedules(IPentahoSession session)
|
static boolean |
isInStandbyMode()
|
static void |
pauseAll()
|
static void |
resumeAll()
|
static void |
resumeJob(IPentahoSession session,
String jobName,
String jobGroup)
|
static void |
runJob(IPentahoSession session,
String jobName,
String jobGroup)
|
static void |
suspendJob(IPentahoSession session,
String jobName,
String jobGroup)
|
SchedulerHelper
public SchedulerHelper()
getMySchedules
public static List<IJobSchedule> getMySchedules(IPentahoSession session)
throws SchedulerException
- Throws:
SchedulerException
getAllSchedules
public static List<IJobSchedule> getAllSchedules(IPentahoSession session)
throws SchedulerException
- Throws:
SchedulerException
runJob
public static void runJob(IPentahoSession session,
String jobName,
String jobGroup)
throws SchedulerException
- Throws:
SchedulerException
resumeJob
public static void resumeJob(IPentahoSession session,
String jobName,
String jobGroup)
throws SchedulerException
- Throws:
SchedulerException
suspendJob
public static void suspendJob(IPentahoSession session,
String jobName,
String jobGroup)
throws SchedulerException
- Throws:
SchedulerException
deleteJob
public static void deleteJob(IPentahoSession session,
String jobName,
String jobGroup)
throws SchedulerException
- Throws:
SchedulerException
createCronJob
public static void createCronJob(IPentahoSession session,
String solutionName,
String path,
String actionName,
String triggerName,
String group,
String description,
String cronExpression)
createCronJob
public static void createCronJob(IPentahoSession session,
String solutionName,
String path,
String actionName,
String cronExpression)
createSimpleTriggerJob
public static void createSimpleTriggerJob(IPentahoSession session,
String solutionName,
String path,
String actionName,
String triggerName,
String group,
String description,
Date strStartDate,
Date strEndDate,
int repeatCount,
int strRepeatInterval)
executeJobNow
public static void executeJobNow(String jobName,
String jobGroup)
throws SchedulerException
- Throws:
SchedulerException
isInStandbyMode
public static boolean isInStandbyMode()
resumeAll
public static void resumeAll()
pauseAll
public static void pauseAll()
createCronTrigger
public static CronTrigger createCronTrigger(String triggerName,
String triggerGroupName,
String strStartDate,
String strEndDate,
String cronString)
throws ParseException
- Throws:
ParseException
createRepeatTrigger
public static SimpleTrigger createRepeatTrigger(String triggerName,
String triggerGroupName,
Date startDate,
Date endDate,
int repeatCount,
int repeatInterval)
createRepeatTrigger
public static SimpleTrigger createRepeatTrigger(String triggerName,
String triggerGroupName,
String strStartDate,
String strEndDate,
String repeatCount,
String strRepeatInterval)
throws ParseException
- Parameters:
triggerName
- triggerGroupName
- strStartDate
- strEndDate
- repeatCount
- strRepeatInterval
- repeat interval in milliseconds
- Returns:
-
- Throws:
ParseException