Interface TaskManager
- 
- All Superinterfaces:
- ExtensionPointManager
 
 public interface TaskManager extends ExtensionPointManager This system manages arbitrary gateway Tasks. Tasks are registered by various systems, and can be configured to execute once, in the future, or on a timer.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelTask(java.lang.Long taskId)Attempts to cancel the execution of a task.TaskSettingscreateNewTask(java.lang.String ownerId, java.lang.String typeId)Creates a new task definition programmatically.voiddeleteTask(java.lang.Long taskId)Cancels the task (if possible) and deletes the underlying GatewayTaskRecord and its associated settings record.java.util.List<TaskType>getRegisteredTypes(boolean allowPrivate)Returns all of the currently registered tag types.java.util.List<TaskStatusEvent>getTaskEvents()java.util.List<TaskStatus>getTaskStatus()Returns the status of all outstanding tasks.TaskStatusgetTaskStatus(java.lang.Long taskId)Returns the task status of the provided id, or null if the task is no longer defined.TaskTypegetType(java.lang.String owner, java.lang.String typeId)voidregisterTaskType(TaskType type)Registers a new type of task.booleanresumeTask(java.lang.Long taskId)Attempts to resume a previously suspended task.booleansuspendTask(java.lang.Long taskId)Attempts to suspend (pause) a running or waiting task.voidunregisterTaskType(TaskType type)Unregisters a previously registered tag type.- 
Methods inherited from interface com.inductiveautomation.ignition.gateway.model.ExtensionPointManagergetExtensionPoint, getExtensionPoints
 
- 
 
- 
- 
- 
Method Detail- 
getTaskStatusjava.util.List<TaskStatus> getTaskStatus() Returns the status of all outstanding tasks. May return tasks that are not yet active, but will execute soon.
 - 
getTaskEventsjava.util.List<TaskStatusEvent> getTaskEvents() 
 - 
getTaskStatusTaskStatus getTaskStatus(java.lang.Long taskId) Returns the task status of the provided id, or null if the task is no longer defined.
 - 
registerTaskTypevoid registerTaskType(TaskType type) Registers a new type of task.
 - 
unregisterTaskTypevoid unregisterTaskType(TaskType type) Unregisters a previously registered tag type.
 - 
getRegisteredTypesjava.util.List<TaskType> getRegisteredTypes(boolean allowPrivate) Returns all of the currently registered tag types.
 - 
getTypeTaskType getType(java.lang.String owner, java.lang.String typeId) 
 - 
suspendTaskboolean suspendTask(java.lang.Long taskId) Attempts to suspend (pause) a running or waiting task. If the task does not support the suspend operation, or the operation times out, the function will return false.
 - 
resumeTaskboolean resumeTask(java.lang.Long taskId) Attempts to resume a previously suspended task. Will return false if the operation fails for some reason (the reason will be logged).
 - 
cancelTaskboolean cancelTask(java.lang.Long taskId) Attempts to cancel the execution of a task. If the task does not support cancellation, or the operation fails, false will be returned.
 - 
deleteTaskvoid deleteTask(java.lang.Long taskId) Cancels the task (if possible) and deletes the underlying GatewayTaskRecord and its associated settings record. This action will destroy the task permanently. Only use this method if you are sure the task will never get reused. As an alternative, use cancelTask() to stop a scheduled task and keep the GatewayTaskRecord intact.
 - 
createNewTaskTaskSettings createNewTask(java.lang.String ownerId, java.lang.String typeId) Creates a new task definition programmatically. Given the task owner and type ids, it returns a structure with settings for the overall task. The task is not actually created until save() is called on the settings structure.
 
- 
 
-