public class ComputeGraph extends BaseDataflowTaskGraph<Vertex,Edge>
todo redundant ComputeGraph
<- BaseDataflowTaskGraph
<- ITaskGraph
chain
Modifier and Type | Class and Description |
---|---|
static class |
ComputeGraph.StringComparator |
Constructor and Description |
---|
ComputeGraph() |
ComputeGraph(OperationMode mode) |
ComputeGraph(OperationMode mode,
java.lang.String graphName) |
Modifier and Type | Method and Description |
---|---|
void |
addGraphConstraints(java.util.Map<java.lang.String,java.lang.String> graphConstraintsmap) |
void |
addNodeConstraints(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsmap) |
boolean |
addTaskVertex(java.lang.String name,
Vertex taskVertex)
This method is responsible for adding the task vertex to the task map.
|
void |
build()
This method is responsible for storing the directed edges between the source and target task
vertex in a map.
|
Vertex |
childOfTask(Vertex task,
java.lang.String edge) |
java.util.Set<Vertex> |
childrenOfTask(java.lang.String taskName) |
java.util.Map<java.lang.String,java.lang.String> |
getGraphConstraints() |
java.lang.String |
getGraphName() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getNodeConstraints() |
OperationMode |
getOperationMode()
This is the getter method to get the property of operation mode "STREAMING" or "BATCH".
|
Vertex |
getParentOfTask(Vertex task,
java.lang.String edge) |
java.util.Set<Edge> |
inEdges(java.lang.String taskName) |
java.util.Set<Edge> |
inEdges(Vertex task) |
java.util.Set<Edge> |
outEdges(java.lang.String taskName) |
java.util.Set<Edge> |
outEdges(Vertex task) |
java.util.Set<Vertex> |
parentsOfTask(java.lang.String taskName) |
void |
setGraphName(java.lang.String graphName) |
void |
setOperationMode(OperationMode operationMode)
This is the setter method to set the property of the operation mode which is either
"STREAMING" or "BATCH"
|
Vertex |
vertex(java.lang.String name) |
addTaskEdge, addTaskEdge, addTaskVertex, childrenOfTask, connectedChildTask, connectedParentTask, containsTaskEdge, containsTaskEdge, containsTaskEdge, containsTaskVertex, getAllTaskEdges, getDataflowTaskEdge, getDirectedEdgesSet, getTaskVertexSet, hasCycle, incomingTaskEdgesOf, inDegreeOfTask, outDegreeOfTask, outgoingTaskEdgesOf, parentsOfTask, removeAllTaskEdges, removeAllTaskEdges, removeAllTaskVertices, removeTaskEdge, removeTaskEdge, removeTaskVertex, taskEdgeSet, taskEdgesOf, validate, validateTaskVertex
public ComputeGraph()
public ComputeGraph(OperationMode mode)
public ComputeGraph(OperationMode mode, java.lang.String graphName)
public void build()
build
in class BaseDataflowTaskGraph<Vertex,Edge>
public java.lang.String getGraphName()
public void setGraphName(java.lang.String graphName)
public boolean addTaskVertex(java.lang.String name, Vertex taskVertex)
public void addNodeConstraints(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> nodeConstraintsmap)
public void addGraphConstraints(java.util.Map<java.lang.String,java.lang.String> graphConstraintsmap)
public java.util.Map<java.lang.String,java.lang.String> getGraphConstraints()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getNodeConstraints()
public Vertex vertex(java.lang.String name)
public java.util.Set<Edge> outEdges(java.lang.String taskName)
public java.util.Set<Edge> inEdges(java.lang.String taskName)
public java.util.Set<Vertex> childrenOfTask(java.lang.String taskName)
public java.util.Set<Vertex> parentsOfTask(java.lang.String taskName)
public OperationMode getOperationMode()
public void setOperationMode(OperationMode operationMode)