public interface TaskLocationResolver
Modifier and Type | Method and Description |
---|---|
int |
getLocation(TaskServiceContext ctx,
TaskInfo taskInfo)
Returns the location the given task should be scheduled in.
|
void |
init(Map<String,String> properties)
Initializes the task location resolver with the given properties.
|
void init(Map<String,String> properties) throws org.wso2.carbon.ntask.common.TaskException
properties
- The property maporg.wso2.carbon.ntask.common.TaskException
int getLocation(TaskServiceContext ctx, TaskInfo taskInfo) throws org.wso2.carbon.ntask.common.TaskException
ctx
- The task context, which contains environmental information on
other tasks etc..taskInfo
- The task information of the task to be scheduledorg.wso2.carbon.ntask.common.TaskException
Copyright © 2020 WSO2. All rights reserved.