public interface QuartzManager
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(Properties taskProperties)
Insert a new task in the quartz scheduler
|
void |
addTask(String propertiesFile)
Insert a new task in the quartz scheduler.
|
void |
addTask(String taskName,
String taskGroup,
String taskClassName,
String triggerName,
String triggerGroup,
Date startTime,
Date endTime,
int repeatCount,
long repeatInterval,
Map actionParametersMap,
Map queryParametersMap)
Insert a new task in the quartz scheduler
|
void |
addTask(String taskName,
String taskGroup,
String taskClassName,
String cronName,
String cronGroup,
String cronExpression,
Date endTime)
Insert a new task in the quartz scheduler.
|
void |
addTask(String taskName,
String taskGroup,
String taskClassName,
String cronName,
String cronGroup,
String cronExpression,
Date endTime,
Map actionParametersMap,
Map queryParametersMap)
Insert a new task in the Quartz scheduler.
|
EntityReferenceLocator |
getReferenceLocator() |
boolean |
removeTask(String taskName,
String taskGroup)
Remove an existing task of the scheduler
|
EntityReferenceLocator getReferenceLocator()
void addTask(Properties taskProperties)
taskProperties - Properties file to configure the task. It must contain:Taskvoid addTask(String propertiesFile)
propertiesFile - Path of the configuration properties file with the task
parametersaddTask(Properties)void addTask(String taskName, String taskGroup, String taskClassName, String cronName, String cronGroup, String cronExpression, Date endTime)
taskName - Name of the task, it must be unique in the schedulertaskGroup - The name of the tasks group to add the task in. This parameter
can be nulltaskClassName - Name of the class that executes the task. This class must
implement the interface TaskcronName - Name of the thread that will execute the task. This name must
be unique in the quartz schedulercronGroup - Name of the group of threads to add the thread in the previous
parameter. This parameter can be nullcronExpression - Expression to configure the temporal timing to execute the
task. This is a string with 7 values separated by ';'. This 7
parameters are:endTime - Date to stop or finish the task executionvoid addTask(String taskName, String taskGroup, String taskClassName, String cronName, String cronGroup, String cronExpression, Date endTime, Map actionParametersMap, Map queryParametersMap)
taskName - The name of the task, it must be unique in the schedulertaskGroup - The name of the tasks group to add the task in. This parameter
can be nulltaskClassName - Name of the class that executes the task. This class must
implement the interface TaskcronName - Name of the thread that will execute the task. This name must
be unique in the quartz schedulercronGroup - Name of the group of threads to add the thread in the previous
parameter. This parameter can be nullcronExpression - Expression to configure the temporal timing to execute the
task. This is a string with 7 values separated by ';'. This 7
parameters are:endTime - Date to stop or finish the task executionactionParametersMap - Parameters used to execute the taskqueryParametersMap - Parameters used to execute a query to get some data to know if
the task must be executed or notvoid addTask(String taskName, String taskGroup, String taskClassName, String triggerName, String triggerGroup, Date startTime, Date endTime, int repeatCount, long repeatInterval, Map actionParametersMap, Map queryParametersMap)
taskName - The name of the task, it must be unique in the schedulertaskGroup - The name of the tasks group to add the task in. This parameter
can be nulltaskClassName - Name of the class that executes the task. This class must
implement the interface TasktriggerName - Name of the thread that will execute the task. This name must
be unique in the quartz schedulertriggerGroup - Name of the group of threads to add the thread in the previous
parameter. This parameter can be nullstartTime - Date to start the task executionendTime - Date to stop or finish the execution of the taskrepeatCount - Number of times to execute the taskrepeatInterval - Time between to executions of the taskactionParametersMap - Parameters used to execute the taskqueryParametersMap - Parameters used to execute a query to get some data to know if
the task must be executed or notCopyright © 2016 Imatia Innovation S.L.. All rights reserved.