public class TaskServiceImpl extends Object implements TaskService
TaskService
TaskService.TaskServerMode, TaskService.TaskServiceConfiguration
Constructor and Description |
---|
TaskServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<TaskManager> |
getAllTenantTaskManagersForType(String taskType)
Returns all the tenant task managers for a specific task type
|
TaskService.TaskServerMode |
getEffectiveTaskServerMode() |
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.
|
TaskManagerFactory |
getTaskManagerFactory() |
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.
|
public TaskServiceImpl() throws org.wso2.carbon.ntask.common.TaskException
org.wso2.carbon.ntask.common.TaskException
public boolean isServerInit()
TaskService
isServerInit
in interface TaskService
public TaskManagerFactory getTaskManagerFactory()
public Set<String> getRegisteredTaskTypes()
TaskService
getRegisteredTaskTypes
in interface TaskService
public TaskManager getTaskManager(String taskType) throws org.wso2.carbon.ntask.common.TaskException
TaskService
getTaskManager
in interface TaskService
taskType
- The type of the tasks, e.g. DSS, ESB, MSorg.wso2.carbon.ntask.common.TaskException
public List<TaskManager> getAllTenantTaskManagersForType(String taskType) throws org.wso2.carbon.ntask.common.TaskException
TaskService
getAllTenantTaskManagersForType
in interface TaskService
taskType
- The task typeorg.wso2.carbon.ntask.common.TaskException
public void registerTaskType(String taskType) throws org.wso2.carbon.ntask.common.TaskException
TaskService
registerTaskType
in interface TaskService
taskType
- The task typeorg.wso2.carbon.ntask.common.TaskException
public void serverInitialized()
TaskService
serverInitialized
in interface TaskService
public TaskService.TaskServiceConfiguration getServerConfiguration()
TaskService
getServerConfiguration
in interface TaskService
public TaskService.TaskServerMode getEffectiveTaskServerMode()
public void runAfterRegistrationActions() throws org.wso2.carbon.ntask.common.TaskException
TaskService
runAfterRegistrationActions
in interface TaskService
org.wso2.carbon.ntask.common.TaskException
Copyright © 2022 WSO2. All rights reserved.