public class TaskAttributes
extends java.lang.Object
Constructor and Description |
---|
TaskAttributes() |
Modifier and Type | Method and Description |
---|---|
int |
getInstancesPerWorker(java.util.Map<java.lang.String,java.lang.String> graphConstraintsMap) |
int |
getInstancesPerWorker(Vertex taskVertex,
java.util.Map<java.lang.String,java.lang.String> vertexConstraintsMap) |
java.util.Map<java.lang.String,java.lang.Integer> |
getParallelTaskMap(java.util.Set<Vertex> iTaskSet) |
java.util.Map<java.lang.String,java.lang.Integer> |
getParallelTaskMap(java.util.Set<Vertex> iTaskSet,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap)
This method is mainly to generate the parallel task map (maintain order) for the task vertex.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getParallelTaskMap(Vertex taskVertex) |
java.util.Map<java.lang.String,java.lang.Integer> |
getParallelTaskMap(Vertex taskVertex,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap)
This method is to generate the parallel task map for the task vertex.
|
java.util.Map<java.lang.String,java.lang.Double> |
getTaskCPUMap(java.util.Set<Vertex> taskVertices)
This method retrieve the set of task vertices and check if the task vertex has the user
specified cpu value.
|
java.util.Map<java.lang.String,java.lang.Double> |
getTaskDiskMap(java.util.Set<Vertex> taskVertices)
This method retrieve the set of task vertices and check if the task vertex has the user
specified disk value.
|
java.util.Map<java.lang.String,java.lang.Double> |
getTaskNetworkMap(java.util.Set<Vertex> taskVertices)
This method retrieve the set of task vertices and check if the task vertex has the user
specified network value.
|
java.util.Map<java.lang.String,java.lang.Double> |
getTaskRamMap(java.util.Set<Vertex> taskVertices)
This method retrieve the set of task vertices and check if the task vertex has the user
specified ram value.
|
int |
getTotalNumberOfInstances(java.util.Set<Vertex> iTaskSet)
This method is to calculate the total number of task instances in the task graph which is based
on the parallelism specified in the task graph or else from the task configuration
default values.
|
int |
getTotalNumberOfInstances(java.util.Set<Vertex> iTaskSet,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap) |
int |
getTotalNumberOfInstances(Vertex taskVertex) |
int |
getTotalNumberOfInstances(Vertex taskVertex,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap) |
public int getInstancesPerWorker(Vertex taskVertex, java.util.Map<java.lang.String,java.lang.String> vertexConstraintsMap)
public int getInstancesPerWorker(java.util.Map<java.lang.String,java.lang.String> graphConstraintsMap)
public int getTotalNumberOfInstances(java.util.Set<Vertex> iTaskSet)
public int getTotalNumberOfInstances(Vertex taskVertex)
public int getTotalNumberOfInstances(java.util.Set<Vertex> iTaskSet, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap)
public int getTotalNumberOfInstances(Vertex taskVertex, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap)
public java.util.Map<java.lang.String,java.lang.Integer> getParallelTaskMap(java.util.Set<Vertex> iTaskSet, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap)
public java.util.Map<java.lang.String,java.lang.Integer> getParallelTaskMap(Vertex taskVertex, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsMap)
public java.util.Map<java.lang.String,java.lang.Integer> getParallelTaskMap(java.util.Set<Vertex> iTaskSet)
public java.util.Map<java.lang.String,java.lang.Integer> getParallelTaskMap(Vertex taskVertex)
public java.util.Map<java.lang.String,java.lang.Double> getTaskRamMap(java.util.Set<Vertex> taskVertices)
public java.util.Map<java.lang.String,java.lang.Double> getTaskDiskMap(java.util.Set<Vertex> taskVertices)
public java.util.Map<java.lang.String,java.lang.Double> getTaskCPUMap(java.util.Set<Vertex> taskVertices)
public java.util.Map<java.lang.String,java.lang.Double> getTaskNetworkMap(java.util.Set<Vertex> taskVertices)