Package org.wso2.carbon.task
Class TaskManager
java.lang.Object
org.wso2.carbon.task.TaskManager
A Central controller for do Task management
Track 'TaskManagementService' service implementations
and delete management operation to them as appropriately
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTaskDescription(org.apache.synapse.task.TaskDescription taskDescription) Adding a TaskDescription Delegates adding responsibility to underlying each 'TaskManagementService' servicevoiddeleteTaskDescription(String name, String group) Deleting a TaskDescription Delegates deleting responsibility to each 'TaskManagementService' servicevoideditTaskDescription(org.apache.synapse.task.TaskDescription taskDescription, org.apache.axis2.engine.AxisConfiguration axisConfig) Editing a TaskDescription Delegates Editing responsibility to each 'TaskManagementService' serviceTaskData[]getAllTaskData(org.apache.axis2.engine.AxisConfiguration axisConfig) List<org.apache.synapse.task.TaskDescription> Get all TaskDescriptions across all 'TaskManagementService' servicegetPropertyNames(String taskClass, String group) org.apache.synapse.task.TaskDescriptiongetTaskDescription(String name, String group) Looking up a TaskDescription Delegates Looking up responsibility to each 'TaskManagementService' servicevoidinit(JobMetaDataProviderServiceHandler jobMetaDataProviderServiceHandler, TaskManagementServiceHandler taskManagementServiceHandler) booleanisContains(String name, String group) Explicit check for a TaskDescription with a particular name Delegates responsibility to each 'TaskManagementService' service until any one find a TaskDescription with the given namevoidsetTaskDescriptionRepository(org.apache.synapse.task.TaskDescriptionRepository repository) voidshutDown()
-
Field Details
-
CARBON_TASK_MANAGER
- See Also:
-
CARBON_TASK_REPOSITORY
- See Also:
-
CARBON_TASK_JOB_METADATA_SERVICE
- See Also:
-
CARBON_TASK_MANAGEMENT_SERVICE
- See Also:
-
CARBON_TASK_SCHEDULER
- See Also:
-
-
Constructor Details
-
TaskManager
public TaskManager()
-
-
Method Details
-
init
public void init(JobMetaDataProviderServiceHandler jobMetaDataProviderServiceHandler, TaskManagementServiceHandler taskManagementServiceHandler) -
shutDown
public void shutDown() -
addTaskDescription
public void addTaskDescription(org.apache.synapse.task.TaskDescription taskDescription) Adding a TaskDescription Delegates adding responsibility to underlying each 'TaskManagementService' service- Parameters:
taskDescription- TaskDescription instance
-
deleteTaskDescription
Deleting a TaskDescription Delegates deleting responsibility to each 'TaskManagementService' service- Parameters:
name- Name of the TaskDescription instance to be deletedgroup- group of the task
-
editTaskDescription
public void editTaskDescription(org.apache.synapse.task.TaskDescription taskDescription, org.apache.axis2.engine.AxisConfiguration axisConfig) Editing a TaskDescription Delegates Editing responsibility to each 'TaskManagementService' service- Parameters:
taskDescription- TaskDescription instance
-
getAllTaskDescriptions
Get all TaskDescriptions across all 'TaskManagementService' service- Returns:
- List of TaskDescription instances
-
getAllTaskData
-
getTaskDescription
Looking up a TaskDescription Delegates Looking up responsibility to each 'TaskManagementService' service- Parameters:
name- Name of the TaskDescription to be returnedgroup- group of the task- Returns:
- taskDescription TaskDescription instance
-
isContains
Explicit check for a TaskDescription with a particular name Delegates responsibility to each 'TaskManagementService' service until any one find a TaskDescription with the given name- Parameters:
name- Name of the TaskDescriptiongroup- group of the task- Returns:
- true if there is a task description with given name
-
getPropertyNames
-
getAllJobGroups
-
setTaskDescriptionRepository
public void setTaskDescriptionRepository(org.apache.synapse.task.TaskDescriptionRepository repository)
-