public interface IFMEScheduleManager
Modifier and Type | Method and Description |
---|---|
IFMECronTrigger |
createCronTrigger(java.util.Date startTime,
java.util.Date endTime,
java.lang.String cronExpression)
Creates a trigger that will occur at the given time, until the given end time.
|
IFMEDateIntervalTrigger |
createDateIntervalTrigger(java.util.Date startTime)
Creates a trigger that will occur at the given time, and not repeat.
|
IFMEDateIntervalTrigger |
createDateIntervalTrigger(java.util.Date startTime,
java.util.Date endTime,
IFMEDateIntervalTrigger.IntervalUnit intervalUnit,
int repeatInterval)
Creates a trigger that will occur at the given time, and repeat at the the given interval until the given end time.
|
IFMETask |
createTask(IFMETaskConfig taskConfig,
IFMETrigger trigger,
boolean isEnabled,
java.util.Map<java.lang.String,java.lang.String> directives)
Creates the task to be scheduled.
|
IFMETransformationTaskConfig |
createTransformationTaskConfig(java.lang.String category,
java.lang.String name,
java.lang.String description,
IFMETransformationRequest transformationRequest)
Creates a task configuration for a transformation request.
|
long |
getNumTasks(java.util.Map<java.lang.String,java.lang.String> directives)
Gets the number of schedule tasks.
|
IFMETask |
getTask(java.lang.String category,
java.lang.String name)
Gets the scheduled task.
|
java.util.List<IFMETask> |
getTasks(java.util.Map<java.lang.String,java.lang.String> directives)
Gets a list of schedule tasks.
|
boolean |
removeTask(java.lang.String category,
java.lang.String name)
Removes the scheduled task.
|
void |
scheduleTask(IFMETask task)
Schedules the task.
|
void |
scheduleTask(IFMETaskConfig taskConfig,
IFMETrigger trigger)
Schedules the task with the given task configuration and trigger.
|
boolean |
taskExists(java.lang.String category,
java.lang.String name)
Checks if the scheduled task exists.
|
void |
updateTask(IFMETask task)
Updates the scheduled task.
|
IFMETransformationTaskConfig createTransformationTaskConfig(java.lang.String category, java.lang.String name, java.lang.String description, IFMETransformationRequest transformationRequest)
category
- the task categoryname
- the task namedescription
- the task descriptiontransformationRequest
- the transformation requestIFMEDateIntervalTrigger createDateIntervalTrigger(java.util.Date startTime, java.util.Date endTime, IFMEDateIntervalTrigger.IntervalUnit intervalUnit, int repeatInterval)
startTime
- the time in which the trigger should start firing. If null, the trigger starts firing immediately.endTime
- the time in which trigger should stop firing. If null, the trigger never stops firing unless removed.intervalUnit
- the interval unitrepeatInterval
- the repeat interval. If repeat interval is zero, the trigger will NOT repeat.IFMEDateIntervalTrigger createDateIntervalTrigger(java.util.Date startTime)
startTime
- the time in which the trigger should start firing. If null, the trigger starts firing immediately.IFMECronTrigger createCronTrigger(java.util.Date startTime, java.util.Date endTime, java.lang.String cronExpression)
startTime
- the time in which the trigger should start firing. If null, the trigger starts firing immediately.endTime
- the time in which trigger should stop firing. If null, the trigger never stops firing unless removed.cronExpression
- the cron expression.void scheduleTask(IFMETaskConfig taskConfig, IFMETrigger trigger) throws FMEServerException
taskConfig
- the task configuration.trigger
- the trigger.FMEServerException
- if a FME Server exception occurredIFMETask getTask(java.lang.String category, java.lang.String name) throws FMEServerException
category
- the task category.name
- the task name.FMEServerException
- if a FME Server exception occurredboolean removeTask(java.lang.String category, java.lang.String name) throws FMEServerException
category
- the task category.name
- the task name.FMEServerException
- if a FME Server exception occurredboolean taskExists(java.lang.String category, java.lang.String name) throws FMEServerException
category
- the task category.name
- the task name.FMEServerException
- if a FME Server exception occurredjava.util.List<IFMETask> getTasks(java.util.Map<java.lang.String,java.lang.String> directives) throws FMEServerException
directives
- a Map of keyword and values specifying schedule tasks to returnIf null then the first 100 schedule tasks are returned.
If TASK_LIMIT keyword used, then directive value must specify the starting point and the duration. Spaces are treated as delimiters. For example, the value "0 10" means the first schedule tasks will start at position 0 and 10 subsequent schedule tasks will be returned.
FMEServerException
- if a FME Server exception occurredlong getNumTasks(java.util.Map<java.lang.String,java.lang.String> directives) throws FMEServerException
directives
- a Map of keyword and values specifying schedule tasks to returnIf null then the total number of schedule tasks is returned.
FMEServerException
- if a FME Server exception occurredIFMETask createTask(IFMETaskConfig taskConfig, IFMETrigger trigger, boolean isEnabled, java.util.Map<java.lang.String,java.lang.String> directives)
taskConfig
- the task configuration.trigger
- the trigger.isEnabled
- true if task is enabled, otherwise false.directives
- reserved for future use. If null, defaults used.void scheduleTask(IFMETask task) throws FMEServerException
task
- the schedule task.FMEServerException
- if a FME Server exception occurredvoid updateTask(IFMETask task) throws FMEServerException
task
- the scheduled task.FMEServerException
- if a FME Server exception occurredCopyright © 2015. All Rights Reserved.