public class TaskIdGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TASK_OFFSET |
Constructor and Description |
---|
TaskIdGenerator() |
Modifier and Type | Method and Description |
---|---|
int |
generateGlobalTaskId(int taskId,
int taskIndex)
Generate a unique global task id
|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getGlobalTaskToIndex(Vertex v,
int taskId) |
java.util.Set<java.lang.Integer> |
getTaskIds(Vertex v,
int taskId) |
java.util.Set<java.lang.Integer> |
getTaskIdsOfContainer(WorkerSchedulePlan cPlan) |
public static final int TASK_OFFSET
public int generateGlobalTaskId(int taskId, int taskIndex)
taskId
- task idtaskIndex
- task indexpublic java.util.Set<java.lang.Integer> getTaskIds(Vertex v, int taskId)
public java.util.Map<java.lang.Integer,java.lang.Integer> getGlobalTaskToIndex(Vertex v, int taskId)
public java.util.Set<java.lang.Integer> getTaskIdsOfContainer(WorkerSchedulePlan cPlan)