Class TaskServiceImpl

    • Constructor Detail

      • TaskServiceImpl

        public TaskServiceImpl()
                        throws org.wso2.carbon.ntask.common.TaskException
        Throws:
        org.wso2.carbon.ntask.common.TaskException
    • Method Detail

      • isServerInit

        public boolean isServerInit()
        Description copied from interface: TaskService
        Checks whether the task server is full initialized.
        Specified by:
        isServerInit in interface TaskService
        Returns:
        true if initialized
      • getTaskManager

        public TaskManager getTaskManager​(String taskType)
                                   throws org.wso2.carbon.ntask.common.TaskException
        Description copied from interface: TaskService
        Returns a task manager for the current tenant's task type.
        Specified by:
        getTaskManager in interface TaskService
        Parameters:
        taskType - The type of the tasks, e.g. DSS, ESB, MS
        Returns:
        The created / looked-up task manager
        Throws:
        org.wso2.carbon.ntask.common.TaskException
      • getAllTenantTaskManagersForType

        public List<TaskManager> getAllTenantTaskManagersForType​(String taskType)
                                                          throws org.wso2.carbon.ntask.common.TaskException
        Description copied from interface: TaskService
        Returns all the tenant task managers for a specific task type
        Specified by:
        getAllTenantTaskManagersForType in interface TaskService
        Parameters:
        taskType - The task type
        Returns:
        The list of task managers
        Throws:
        org.wso2.carbon.ntask.common.TaskException
      • registerTaskType

        public void registerTaskType​(String taskType)
                              throws org.wso2.carbon.ntask.common.TaskException
        Description copied from interface: TaskService
        This method registers a task type in the server, this must be done for the task managers for the current tenant to be started up immediately.
        Specified by:
        registerTaskType in interface TaskService
        Parameters:
        taskType - The task type
        Throws:
        org.wso2.carbon.ntask.common.TaskException
      • serverInitialized

        public void serverInitialized()
        Description copied from interface: TaskService
        Notifies the task service implementation that the server is fully initialized.
        Specified by:
        serverInitialized in interface TaskService
      • runAfterRegistrationActions

        public void runAfterRegistrationActions()
                                         throws org.wso2.carbon.ntask.common.TaskException
        Description copied from interface: TaskService
        This is called after the current task service is registered.
        Specified by:
        runAfterRegistrationActions in interface TaskService
        Throws:
        org.wso2.carbon.ntask.common.TaskException