Package ddf.platform.scheduler
Class ScheduledCommandTask
java.lang.Object
ddf.platform.scheduler.ScheduledCommandTask
- All Implemented Interfaces:
ScheduledTask
Schedules a Command task
- Author:
- Ashraf Barakat
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScheduledCommandTask(org.quartz.Scheduler scheduler, CommandJobFactory commandJobFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteTask(int code) Removes a task completely so that it does not run or exist.voidnewTask()Creates and schedules new taskvoidsetCommand(String command) voidsetIntervalString(String intervalString) voidsetIntervalType(String intervalType) voidupdateTask(Map<String, Object> properties) Updates an existing task with new properties.
-
Field Details
-
SECOND_INTERVAL
- See Also:
-
CRON_STRING
- See Also:
-
INTERVAL_STRING
- See Also:
-
INTERVAL_TYPE
- See Also:
-
ONE_DAY
- See Also:
-
-
Constructor Details
-
ScheduledCommandTask
public ScheduledCommandTask(org.quartz.Scheduler scheduler, CommandJobFactory commandJobFactory) throws org.quartz.SchedulerException - Parameters:
scheduler- - A reference to the Quartz SchedulercommandJobFactory- - A reference to a Quartz CommandJobFactory for the scheduler to use- Throws:
org.quartz.SchedulerException
-
-
Method Details
-
setCommand
-
getCommand
-
setIntervalString
-
getIntervalString
-
setIntervalType
-
getIntervalType
-
newTask
public void newTask()Description copied from interface:ScheduledTaskCreates and schedules new task- Specified by:
newTaskin interfaceScheduledTask
-
deleteTask
public void deleteTask(int code) Description copied from interface:ScheduledTaskRemoves a task completely so that it does not run or exist.- Specified by:
deleteTaskin interfaceScheduledTask- Parameters:
code- - not used- See Also:
-
updateTask
Description copied from interface:ScheduledTaskUpdates an existing task with new properties.- Specified by:
updateTaskin interfaceScheduledTask- Parameters:
properties-
-