public class RoundRobinTaskLocationResolver extends Object implements TaskLocationResolver
Constructor and Description |
---|
RoundRobinTaskLocationResolver() |
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.
|
public void init(Map<String,String> properties) throws org.wso2.carbon.ntask.common.TaskException
TaskLocationResolver
init
in interface TaskLocationResolver
properties
- The property maporg.wso2.carbon.ntask.common.TaskException
public int getLocation(TaskServiceContext ctx, TaskInfo taskInfo) throws org.wso2.carbon.ntask.common.TaskException
TaskLocationResolver
getLocation
in interface TaskLocationResolver
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 © 2022 WSO2. All rights reserved.