public interface AdminToolQuartzService
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeJob(JobTriggerTO triggerTO)
changes the job information and replaces the job
|
boolean |
changeTrigger(JobTriggerTO triggerTO,
boolean add)
changes (or adds) a trigger
|
void |
changeTriggerState(String groupName,
String jobName,
String triggerGroup,
String triggerName)
pausing either the found trigger or all triggers of found job
|
Collection<String> |
getCalendarNames() |
String |
getCronExpression(org.quartz.Trigger trigger,
String defaultValue) |
int |
getCurrentlyExecutingAmount(org.quartz.JobKey jobKey) |
Collection<JobTriggerTO> |
getInstructionSets() |
String |
getJobDescription(org.quartz.JobKey jobKey) |
List<String> |
getJobGroups() |
Set<org.quartz.JobKey> |
getJobKeys(String group) |
org.quartz.SchedulerMetaData |
getMetaData()
the scheduler configuration
|
JobTriggerTO |
getTriggerInfo(String groupName,
String jobName,
String triggerGroup,
String triggerName)
returns the job and possibly the trigger info if triggerGroup and triggerName has beeen specified
|
List<? extends org.quartz.Trigger> |
getTriggers(org.quartz.JobKey jobKey) |
String |
getTriggerState(org.quartz.JobKey jobKey,
org.quartz.Trigger trigger)
retuns "paused", "running" or "pending" depending on the triggers state
|
String |
getTriggerStateCssClass(org.quartz.JobKey jobKey,
org.quartz.Trigger trigger)
retuns "btn-warning" for paused trigger, "btn-success" for running trigger else "btn-info"
|
void |
interruptJob(String jobGroup,
String jobName)
interrupts all triggers of job
|
void |
interruptTrigger(String jobGroup,
String jobName,
String triggerGroup,
String triggerName)
interrupts the trigger i found
|
boolean |
isCronTrigger(org.quartz.Trigger trigger) |
boolean |
isCurrentlyRunning(org.quartz.JobKey jobKey,
org.quartz.Trigger trigger)
returns if the trigger is running currently
|
boolean |
isInteruptable(org.quartz.JobKey jobKey) |
boolean |
isOnePaused(org.quartz.JobKey jobKey) |
boolean |
isPaused(org.quartz.JobKey jobKey) |
boolean |
isPaused(org.quartz.Trigger trigger) |
boolean |
isPrevGoupNotEq(String actualGroup)
checks if the previous stored group is not equals the actual one or if previous is empty
requires to use the setPrevGroup(String) method |
boolean |
isPrevJobNotEq(String actualJob)
checks if the previous stored jobName is not equals the actual one or if previous is empty
requires to use the setPrevJob(String) method |
boolean |
isSchedulerRunning() |
boolean |
isStateful(org.quartz.JobKey jobKey) |
boolean |
removeTrigger(String groupName,
String jobName,
String triggerGroup,
String triggerName)
removes trigger from job
|
boolean |
setPrevGroup(String prevGroup)
sets the given group as previous group
dirty hack to call this method from thymeleaf to get control over row span |
boolean |
setPrevJob(String prevJob)
sets the given jobName as previous jobName
dirty hack to call this method from thymeleaf to get control over row span |
void |
startScheduler()
starts the scheduler process
|
void |
stopScheduler()
stops the scheduler process
|
void |
triggerJob(String groupName,
String jobName)
executes the job immediately with a custom trigger
|
void startScheduler()
void stopScheduler()
boolean isSchedulerRunning()
org.quartz.SchedulerMetaData getMetaData()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionList<String> getJobGroups() throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionboolean isPrevGoupNotEq(String actualGroup)
setPrevGroup(String) methodactualGroup - the actual job groupboolean setPrevGroup(String prevGroup)
prevGroup - boolean isPrevJobNotEq(String actualJob)
setPrevJob(String) methodactualJob - boolean setPrevJob(String prevJob)
prevJob - Set<org.quartz.JobKey> getJobKeys(String group) throws org.quartz.SchedulerException
group - the actual job grouporg.quartz.SchedulerExceptionString getJobDescription(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException
jobKey - the actual job keyorg.quartz.SchedulerExceptionList<? extends org.quartz.Trigger> getTriggers(org.quartz.JobKey jobKey) throws org.quartz.SchedulerException
jobKey - the actual job keyorg.quartz.SchedulerExceptionint getCurrentlyExecutingAmount(org.quartz.JobKey jobKey)
throws org.quartz.SchedulerException
jobKey - the actual job keyorg.quartz.SchedulerExceptionboolean isPaused(org.quartz.JobKey jobKey)
throws org.quartz.SchedulerException
jobKey - the actual job keyorg.quartz.SchedulerExceptionboolean isOnePaused(org.quartz.JobKey jobKey)
throws org.quartz.SchedulerException
jobKey - the actual job keyorg.quartz.SchedulerExceptionboolean isPaused(org.quartz.Trigger trigger)
throws org.quartz.SchedulerException
trigger - the triggerorg.quartz.SchedulerExceptionString getTriggerStateCssClass(org.quartz.JobKey jobKey, org.quartz.Trigger trigger) throws org.quartz.SchedulerException
jobKey - the job keytrigger - the triggerorg.quartz.SchedulerExceptionString getTriggerState(org.quartz.JobKey jobKey, org.quartz.Trigger trigger) throws org.quartz.SchedulerException
jobKey - the job keytrigger - the triggerorg.quartz.SchedulerExceptionboolean isCurrentlyRunning(org.quartz.JobKey jobKey,
org.quartz.Trigger trigger)
throws org.quartz.SchedulerException
jobKey - the job keytrigger - the triggerorg.quartz.SchedulerExceptionString getCronExpression(org.quartz.Trigger trigger, String defaultValue)
trigger - the actual triggerdefaultValue - a default value to be returned, ifboolean isCronTrigger(org.quartz.Trigger trigger)
trigger - boolean isInteruptable(org.quartz.JobKey jobKey)
throws org.quartz.SchedulerException
jobKey - InterruptableJob interfaceorg.quartz.SchedulerExceptionboolean isStateful(org.quartz.JobKey jobKey)
throws org.quartz.SchedulerException
jobKey - StatefulJob interfaceorg.quartz.SchedulerExceptionvoid interruptJob(String jobGroup, String jobName) throws org.quartz.SchedulerException
jobGroup - the jobGroupjobName - the jobNameorg.quartz.SchedulerExceptionvoid interruptTrigger(String jobGroup, String jobName, String triggerGroup, String triggerName) throws org.quartz.SchedulerException
jobGroup - jobName - triggerGroup - triggerName - org.quartz.SchedulerExceptionvoid changeTriggerState(String groupName, String jobName, String triggerGroup, String triggerName) throws org.quartz.SchedulerException
groupName - jobName - triggerGroup - (optional)triggerName - (optional)org.quartz.SchedulerExceptionvoid triggerJob(String groupName, String jobName) throws org.quartz.SchedulerException
groupName - jobName - org.quartz.SchedulerExceptionboolean removeTrigger(String groupName, String jobName, String triggerGroup, String triggerName) throws org.quartz.SchedulerException
groupName - jobName - triggerGroup - triggerName - org.quartz.SchedulerExceptionJobTriggerTO getTriggerInfo(String groupName, String jobName, String triggerGroup, String triggerName) throws org.quartz.SchedulerException
groupName - jobName - triggerGroup - (optional)triggerName - (optional)org.quartz.SchedulerExceptionCollection<String> getCalendarNames() throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionCollection<JobTriggerTO> getInstructionSets()
JobTriggerTO.TriggerType.CRON,
JobTriggerTO.TriggerType.SIMPLE,JobTriggerTO.TriggerType.CALENDAR,JobTriggerTO.TriggerType.DAILY,boolean changeJob(JobTriggerTO triggerTO) throws org.quartz.SchedulerException
triggerTO - org.quartz.SchedulerExceptionboolean changeTrigger(JobTriggerTO triggerTO, boolean add) throws org.quartz.SchedulerException
triggerTO - add - true: if a new trigger should be added (will only work, if there is no other trigger with same identifier)org.quartz.SchedulerExceptionCopyright © 2016. All rights reserved.