public class ScheduledCommandTask extends Object implements ScheduledTask
Modifier and Type | Field and Description |
---|---|
static String |
CRON_STRING |
static String |
INTERVAL_STRING |
static String |
INTERVAL_TYPE |
static String |
ONE_DAY |
static String |
SECOND_INTERVAL |
Constructor and Description |
---|
ScheduledCommandTask(org.quartz.Scheduler scheduler,
Class jobClass) |
Modifier and Type | Method and Description |
---|---|
void |
deleteTask(int code)
Removes a task completely so that it does not run or exist.
|
String |
getCommand() |
String |
getIntervalString() |
String |
getIntervalType() |
void |
newTask()
Creates and schedules new task
|
void |
setCommand(String command) |
void |
setIntervalString(String intervalString) |
void |
setIntervalType(String intervalType) |
void |
updateTask(Map<String,Object> properties)
Updates an existing task with new properties.
|
public static final String SECOND_INTERVAL
public static final String CRON_STRING
public static final String INTERVAL_STRING
public static final String INTERVAL_TYPE
public static final String ONE_DAY
public ScheduledCommandTask(org.quartz.Scheduler scheduler, Class jobClass)
scheduler
- - A reference to the Quartz SchedulerjobClass
- - A reference to the Quartz Job Implementing Classpublic void setCommand(String command)
public String getCommand()
public void setIntervalString(String intervalString)
public String getIntervalString()
public void setIntervalType(String intervalType)
public String getIntervalType()
public void newTask()
ScheduledTask
newTask
in interface ScheduledTask
public void deleteTask(int code)
ScheduledTask
deleteTask
in interface ScheduledTask
code
- - not usedpublic void updateTask(Map<String,Object> properties)
ScheduledTask
updateTask
in interface ScheduledTask
This work is licensed under a Creative Commons Attribution 4.0 International License.