|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.quartz.DefaultQuartzManager
| Nested Class Summary | |
static class |
DefaultQuartzManager.JobName
|
| Method Summary | |
void |
addTask(java.util.Properties taskProperties)
Insert a new task in the quartz scheduler |
void |
addTask(java.lang.String propertiesFile)
Insert a new task in the quartz scheduler. |
void |
addTask(java.lang.String taskName,
java.lang.String taskGroup,
java.lang.String taskClassName,
java.lang.String triggerName,
java.lang.String triggerGroup,
java.util.Date startTime,
java.util.Date endTime,
int repeatCount,
long repeatInterval,
java.util.Map actionParametersMap,
java.util.Map queryParametersMap)
Insert a new task in the quartz scheduler |
void |
addTask(java.lang.String taskName,
java.lang.String taskGroup,
java.lang.String taskClassName,
java.lang.String cronName,
java.lang.String cronGroup,
java.lang.String cronExpression,
java.util.Date endTime)
Insert a new task in the quartz scheduler. |
void |
addTask(java.lang.String taskName,
java.lang.String taskGroup,
java.lang.String taskClassName,
java.lang.String cronName,
java.lang.String cronGroup,
java.lang.String cronExpression,
java.util.Date endTime,
java.util.Map actionParametersMap,
java.util.Map queryParametersMap)
Insert a new task in the Quartz scheduler. |
static QuartzManager |
getQuartzManager()
Gets the reference to the QuarzManager |
EntityReferenceLocator |
getReferenceLocator()
|
org.quartz.Scheduler |
getScheduler()
Gets the scheduler that contains the programmed tasks |
java.lang.String[] |
getTaskGroupNames()
|
static void |
initializeManager(EntityReferenceLocator referenceLocator)
Initializes the class with the default configuration parameters |
static void |
initializeManager(EntityReferenceLocator referenceLocator,
java.util.Properties properties)
Initializes the class using the properties in the configuration file |
java.util.List |
listTask()
|
boolean |
pauseTrigger(java.lang.String cronName,
java.lang.String cronGroup)
Pauses temporally the execution of a thread |
boolean |
removeTask(java.lang.String taskName,
java.lang.String taskGroup)
Remove an existing task of the scheduler |
boolean |
resumeTrigger(java.lang.String cronName,
java.lang.String cronGroup)
Restart the execution of a thread in pause |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void initializeManager(EntityReferenceLocator referenceLocator)
referenceLocator -
public static void initializeManager(EntityReferenceLocator referenceLocator,
java.util.Properties properties)
referenceLocator - properties - Configuration filepublic static QuartzManager getQuartzManager()
public void addTask(java.lang.String taskName,
java.lang.String taskGroup,
java.lang.String taskClassName,
java.lang.String cronName,
java.lang.String cronGroup,
java.lang.String cronExpression,
java.util.Date endTime,
java.util.Map actionParametersMap,
java.util.Map queryParametersMap)
QuartzManager
addTask in interface QuartzManagertaskName - 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 not
public void addTask(java.lang.String taskName,
java.lang.String taskGroup,
java.lang.String taskClassName,
java.lang.String cronName,
java.lang.String cronGroup,
java.lang.String cronExpression,
java.util.Date endTime)
QuartzManager
addTask in interface QuartzManagertaskName - 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 execution
public void addTask(java.lang.String taskName,
java.lang.String taskGroup,
java.lang.String taskClassName,
java.lang.String triggerName,
java.lang.String triggerGroup,
java.util.Date startTime,
java.util.Date endTime,
int repeatCount,
long repeatInterval,
java.util.Map actionParametersMap,
java.util.Map queryParametersMap)
QuartzManager
addTask in interface QuartzManagertaskName - 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 notpublic void addTask(java.util.Properties taskProperties)
QuartzManager
addTask in interface QuartzManagertaskProperties - Properties file to configure the task. It must contain:Taskpublic void addTask(java.lang.String propertiesFile)
QuartzManager
addTask in interface QuartzManagerpropertiesFile - Path of the configuration properties file with the task
parametersQuartzManager.addTask(Properties)
public boolean removeTask(java.lang.String taskName,
java.lang.String taskGroup)
QuartzManager
removeTask in interface QuartzManagertaskName - Name of the task to removetaskGroup - name of the group of tasks that contains the task
public boolean pauseTrigger(java.lang.String cronName,
java.lang.String cronGroup)
cronName - Name of the threadcronGroup - Name of the group of thread
public boolean resumeTrigger(java.lang.String cronName,
java.lang.String cronGroup)
cronName - Name of the threadcronGroup - Name of the group of thread
public java.lang.String[] getTaskGroupNames()
public EntityReferenceLocator getReferenceLocator()
getReferenceLocator in interface QuartzManagerpublic org.quartz.Scheduler getScheduler()
public java.util.List listTask()
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||