Class ScheduledCommandTask

java.lang.Object
ddf.platform.scheduler.ScheduledCommandTask
All Implemented Interfaces:
ScheduledTask

public class ScheduledCommandTask extends Object implements ScheduledTask
Schedules a Command task
Author:
Ashraf Barakat
  • Field Details

  • Constructor Details

    • ScheduledCommandTask

      public ScheduledCommandTask(org.quartz.Scheduler scheduler, CommandJobFactory commandJobFactory) throws org.quartz.SchedulerException
      Parameters:
      scheduler - - A reference to the Quartz Scheduler
      commandJobFactory - - A reference to a Quartz CommandJobFactory for the scheduler to use
      Throws:
      org.quartz.SchedulerException
  • Method Details

    • setCommand

      public void setCommand(String command)
    • getCommand

      public String getCommand()
    • setIntervalString

      public void setIntervalString(String intervalString)
    • getIntervalString

      public String getIntervalString()
    • setIntervalType

      public void setIntervalType(String intervalType)
    • getIntervalType

      public String getIntervalType()
    • newTask

      public void newTask()
      Description copied from interface: ScheduledTask
      Creates and schedules new task
      Specified by:
      newTask in interface ScheduledTask
    • deleteTask

      public void deleteTask(int code)
      Description copied from interface: ScheduledTask
      Removes a task completely so that it does not run or exist.
      Specified by:
      deleteTask in interface ScheduledTask
      Parameters:
      code - - not used
      See Also:
    • updateTask

      public void updateTask(Map<String,Object> properties)
      Description copied from interface: ScheduledTask
      Updates an existing task with new properties.
      Specified by:
      updateTask in interface ScheduledTask