public class SchedulerEngineHelperUtil
extends Object
Constructor and Description |
---|
SchedulerEngineHelperUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addScriptingJob(Trigger trigger,
StorageType storageType,
String description,
String language,
String script,
int exceptionsMaxSize) |
static void |
auditSchedulerJobs(Message message,
TriggerState triggerState) |
static void |
delete(SchedulerEntry schedulerEntry,
StorageType storageType) |
static void |
delete(String groupName,
StorageType storageType) |
static void |
delete(String jobName,
String groupName,
StorageType storageType) |
static String |
getCronText(Calendar calendar,
boolean timeZoneSensitive) |
static String |
getCronText(PortletRequest portletRequest,
Calendar calendar,
boolean timeZoneSensitive,
int recurrenceType) |
static Date |
getEndTime(SchedulerResponse schedulerResponse) |
static Date |
getEndTime(String jobName,
String groupName,
StorageType storageType) |
static Date |
getFinalFireTime(SchedulerResponse schedulerResponse) |
static Date |
getFinalFireTime(String jobName,
String groupName,
StorageType storageType) |
static ObjectValuePair<Exception,Date>[] |
getJobExceptions(SchedulerResponse schedulerResponse) |
static ObjectValuePair<Exception,Date>[] |
getJobExceptions(String jobName,
String groupName,
StorageType storageType) |
static TriggerState |
getJobState(SchedulerResponse schedulerResponse) |
static TriggerState |
getJobState(String jobName,
String groupName,
StorageType storageType) |
static Date |
getNextFireTime(SchedulerResponse schedulerResponse) |
static Date |
getNextFireTime(String jobName,
String groupName,
StorageType storageType) |
static Date |
getPreviousFireTime(SchedulerResponse schedulerResponse) |
static Date |
getPreviousFireTime(String jobName,
String groupName,
StorageType storageType) |
static SchedulerResponse |
getScheduledJob(String jobName,
String groupName,
StorageType storageType) |
static List<SchedulerResponse> |
getScheduledJobs() |
static List<SchedulerResponse> |
getScheduledJobs(StorageType storageType) |
static List<SchedulerResponse> |
getScheduledJobs(String groupName,
StorageType storageType) |
static SchedulerEngineHelper |
getSchedulerEngineHelper()
Deprecated.
As of Judson (7.1.x), replaced by
_getSchedulerEngineHelper() |
static Date |
getStartTime(SchedulerResponse schedulerResponse) |
static Date |
getStartTime(String jobName,
String groupName,
StorageType storageType) |
static void |
pause(String groupName,
StorageType storageType) |
static void |
pause(String jobName,
String groupName,
StorageType storageType) |
static void |
register(MessageListener messageListener,
SchedulerEntry schedulerEntry,
String destinationName) |
static void |
resume(String groupName,
StorageType storageType) |
static void |
resume(String jobName,
String groupName,
StorageType storageType) |
static void |
schedule(Trigger trigger,
StorageType storageType,
String description,
String destinationName,
Message message,
int exceptionsMaxSize) |
static void |
schedule(Trigger trigger,
StorageType storageType,
String description,
String destinationName,
Object payload,
int exceptionsMaxSize) |
static void |
shutdown() |
static void |
start() |
static void |
suppressError(String jobName,
String groupName,
StorageType storageType) |
static void |
unregister(MessageListener messageListener) |
static void |
unschedule(SchedulerEntry schedulerEntry,
StorageType storageType) |
static void |
unschedule(String groupName,
StorageType storageType) |
static void |
unschedule(String jobName,
String groupName,
StorageType storageType) |
static void |
update(String jobName,
String groupName,
StorageType storageType,
String description,
String language,
String script,
int exceptionsMaxSize) |
static void |
update(Trigger trigger,
StorageType storageType) |
public static void addScriptingJob(Trigger trigger, StorageType storageType, String description, String language, String script, int exceptionsMaxSize) throws SchedulerException
SchedulerException
public static void auditSchedulerJobs(Message message, TriggerState triggerState) throws SchedulerException
SchedulerException
public static void delete(SchedulerEntry schedulerEntry, StorageType storageType) throws SchedulerException
SchedulerException
public static void delete(String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void delete(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static String getCronText(Calendar calendar, boolean timeZoneSensitive)
public static String getCronText(PortletRequest portletRequest, Calendar calendar, boolean timeZoneSensitive, int recurrenceType)
public static Date getEndTime(SchedulerResponse schedulerResponse)
public static Date getEndTime(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static Date getFinalFireTime(SchedulerResponse schedulerResponse)
public static Date getFinalFireTime(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static ObjectValuePair<Exception,Date>[] getJobExceptions(SchedulerResponse schedulerResponse)
public static ObjectValuePair<Exception,Date>[] getJobExceptions(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static TriggerState getJobState(SchedulerResponse schedulerResponse)
public static TriggerState getJobState(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static Date getNextFireTime(SchedulerResponse schedulerResponse)
public static Date getNextFireTime(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static Date getPreviousFireTime(SchedulerResponse schedulerResponse)
public static Date getPreviousFireTime(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static SchedulerResponse getScheduledJob(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static List<SchedulerResponse> getScheduledJobs() throws SchedulerException
SchedulerException
public static List<SchedulerResponse> getScheduledJobs(StorageType storageType) throws SchedulerException
SchedulerException
public static List<SchedulerResponse> getScheduledJobs(String groupName, StorageType storageType) throws SchedulerException
SchedulerException
@Deprecated public static SchedulerEngineHelper getSchedulerEngineHelper()
_getSchedulerEngineHelper()
public static Date getStartTime(SchedulerResponse schedulerResponse)
public static Date getStartTime(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void pause(String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void pause(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void register(MessageListener messageListener, SchedulerEntry schedulerEntry, String destinationName)
public static void resume(String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void resume(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void schedule(Trigger trigger, StorageType storageType, String description, String destinationName, Message message, int exceptionsMaxSize) throws SchedulerException
SchedulerException
public static void schedule(Trigger trigger, StorageType storageType, String description, String destinationName, Object payload, int exceptionsMaxSize) throws SchedulerException
SchedulerException
public static void shutdown() throws SchedulerException
SchedulerException
public static void start() throws SchedulerException
SchedulerException
public static void suppressError(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void unregister(MessageListener messageListener)
public static void unschedule(SchedulerEntry schedulerEntry, StorageType storageType) throws SchedulerException
SchedulerException
public static void unschedule(String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void unschedule(String jobName, String groupName, StorageType storageType) throws SchedulerException
SchedulerException
public static void update(String jobName, String groupName, StorageType storageType, String description, String language, String script, int exceptionsMaxSize) throws SchedulerException
SchedulerException
public static void update(Trigger trigger, StorageType storageType) throws SchedulerException
SchedulerException