public interface TaskService
Modifier and Type | Interface and Description |
---|---|
static class |
TaskService.TaskServerMode |
static interface |
TaskService.TaskServiceConfiguration |
Modifier and Type | Method and Description |
---|---|
List<TaskManager> |
getAllTenantTaskManagersForType(String taskType)
Returns all the tenant task managers for a specific task type
|
Set<String> |
getRegisteredTaskTypes()
Retrieves all the registered task types.
|
TaskService.TaskServiceConfiguration |
getServerConfiguration()
Returns the current task server configuration.
|
TaskManager |
getTaskManager(String taskType)
Returns a task manager for the current tenant's task type.
|
boolean |
isServerInit()
Checks whether the task server is full initialized.
|
void |
registerTaskType(String taskType)
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.
|
void |
runAfterRegistrationActions()
This is called after the current task service is registered.
|
void |
serverInitialized()
Notifies the task service implementation that the server is fully initialized.
|
TaskManager getTaskManager(String taskType) throws org.wso2.carbon.ntask.common.TaskException
taskType
- The type of the tasks, e.g. DSS, ESB, MSorg.wso2.carbon.ntask.common.TaskException
List<TaskManager> getAllTenantTaskManagersForType(String taskType) throws org.wso2.carbon.ntask.common.TaskException
taskType
- The task typeorg.wso2.carbon.ntask.common.TaskException
void registerTaskType(String taskType) throws org.wso2.carbon.ntask.common.TaskException
taskType
- The task typeorg.wso2.carbon.ntask.common.TaskException
Set<String> getRegisteredTaskTypes()
void serverInitialized()
boolean isServerInit()
TaskService.TaskServiceConfiguration getServerConfiguration()
void runAfterRegistrationActions() throws org.wso2.carbon.ntask.common.TaskException
org.wso2.carbon.ntask.common.TaskException
Copyright © 2022 WSO2. All rights reserved.