Class TaskManager


  • public class TaskManager
    extends Object
    A Central controller for do Task management Track 'TaskManagementService' service implementations and delete management operation to them as appropriately
    • Constructor Detail

      • TaskManager

        public TaskManager()
    • Method Detail

      • 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

        public void deleteTaskDescription​(String name,
                                          String group)
        Deleting a TaskDescription Delegates deleting responsibility to each 'TaskManagementService' service
        Parameters:
        name - Name of the TaskDescription instance to be deleted
        group - 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

        public List<org.apache.synapse.task.TaskDescription> getAllTaskDescriptions()
        Get all TaskDescriptions across all 'TaskManagementService' service
        Returns:
        List of TaskDescription instances
      • getAllTaskData

        public TaskData[] getAllTaskData​(org.apache.axis2.engine.AxisConfiguration axisConfig)
      • getTaskDescription

        public org.apache.synapse.task.TaskDescription getTaskDescription​(String name,
                                                                          String group)
        Looking up a TaskDescription Delegates Looking up responsibility to each 'TaskManagementService' service
        Parameters:
        name - Name of the TaskDescription to be returned
        group - group of the task
        Returns:
        taskDescription TaskDescription instance
      • isContains

        public boolean isContains​(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 name
        Parameters:
        name - Name of the TaskDescription
        group - group of the task
        Returns:
        true if there is a task description with given name
      • getAllJobGroups

        public List<String> getAllJobGroups()
      • setTaskDescriptionRepository

        public void setTaskDescriptionRepository​(org.apache.synapse.task.TaskDescriptionRepository repository)