public final class ManagementGroupVertex extends ManagementAttachment implements IOReadableWritable
ManagementGraph. A management group vertex is derived
from the type of group vertices Nephele uses in its internal scheduling structures.
This class is not thread-safe.
| Constructor and Description |
|---|
ManagementGroupVertex(ManagementStage stage,
ManagementGroupVertexID id,
String name)
Constructs a new management group vertex.
|
ManagementGroupVertex(ManagementStage stage,
String name)
Constructs a new management group vertex.
|
| Modifier and Type | Method and Description |
|---|---|
ManagementGroupEdge |
getBackwardEdge(int index)
Returns the group edge which arrives at this group vertex at the given index.
|
ManagementGroupEdge |
getForwardEdge(int index)
Returns the group edge which leaves this group vertex at the given index.
|
ManagementGraph |
getGraph()
Returns the management graph this group vertex is part of.
|
ManagementVertex |
getGroupMember(int index)
Returns the management vertex with the given index.
|
List<ManagementVertex> |
getGroupMembers()
Returns alle management vertices containted in this group
|
ManagementGroupVertexID |
getID()
Returns the ID of this management group vertex.
|
String |
getName()
Returns the name of this management group vertex.
|
int |
getNumberOfBackwardEdges()
Returns the number of edges arriving at this group vertex.
|
int |
getNumberOfForwardEdges()
Returns the number of edges originating at this group vertex.
|
int |
getNumberOfGroupMembers()
Returns the number of management vertices included in this group vertex.
|
List<ManagementGroupVertex> |
getPredecessors()
Returns the list of predecessors of this group vertex.
|
ManagementStage |
getStage()
Returns the stage this management group vertex belongs to.
|
int |
getStageNumber()
Returns the number of the management stage this group vertex belongs to.
|
List<ManagementGroupVertex> |
getSuccessors()
Returns the list of successors of this group vertex.
|
boolean |
isInputVertex()
Checks if this vertex is an input vertex in its stage, i.e.
|
boolean |
isOutputVertex()
Checks if this vertex is an output vertex in its stage, i.e.
|
void |
read(DataInputView in) |
String |
toJson()
Returns Json representation of this ManagementGroupVertex
|
String |
toString() |
void |
write(DataOutputView out) |
getAttachment, setAttachmentpublic ManagementGroupVertex(ManagementStage stage, String name)
stage - the stage this group vertex belongs toname - the name of the new management group vertexpublic ManagementGroupVertex(ManagementStage stage, ManagementGroupVertexID id, String name)
stage - the stage this group vertex belongs toid - the ID of the management group vertexname - the name of the new management group vertexpublic ManagementGroupVertexID getID()
public String getName()
nullpublic int getNumberOfForwardEdges()
public int getNumberOfBackwardEdges()
public ManagementGroupEdge getForwardEdge(int index)
index - the index of the group edgenull if no such group
edge existspublic ManagementGroupEdge getBackwardEdge(int index)
index - the index of the group edgenull if no such
group edge existspublic ManagementStage getStage()
public ManagementGraph getGraph()
public int getNumberOfGroupMembers()
public ManagementVertex getGroupMember(int index)
index - the index of the management vertex to be returnednull if no such vertex existspublic List<ManagementVertex> getGroupMembers()
null if no such vertex existspublic boolean isInputVertex()
true if this vertex is an input vertex, false otherwisepublic boolean isOutputVertex()
true if this vertex is an output vertex, false otherwisepublic int getStageNumber()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic List<ManagementGroupVertex> getSuccessors()
public List<ManagementGroupVertex> getPredecessors()
public String toJson()
Copyright © 2014 The Apache Software Foundation. All rights reserved.