public final class ManagementVertex extends ManagementAttachment implements IOReadableWritable
ManagementGraph. A management vertex is derived from the type
of vertices Nephele uses in its internal scheduling structures.
This class is not thread-safe.
| Constructor and Description |
|---|
ManagementVertex(ManagementGroupVertex groupVertex,
ManagementVertexID id,
String instanceName,
int indexInGroup)
Constructs a new management vertex.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionState |
getExecutionState()
Returns the current execution state of this management vertex.
|
ManagementGraph |
getGraph()
The management graph this management vertex belongs to.
|
ManagementGroupVertex |
getGroupVertex()
Returns the group vertex this management vertex belongs to.
|
ManagementVertexID |
getID()
Returns the ID of this management vertex.
|
int |
getIndexInGroup()
Returns the index at which this vertex is stored inside its corresponding group vertex.
|
ManagementGate |
getInputGate(int index)
Returns the input gate at the given index.
|
String |
getInstanceName()
Returns the name of the instance the vertex represented by this management vertex currently runs on.
|
String |
getName()
Returns the name of this management vertex.
|
int |
getNumberOfInputGates()
Returns the number of input gates this management vertex contains.
|
int |
getNumberOfOutputGates()
Returns the number of output gates this management vertex contains.
|
int |
getNumberOfVerticesInGroup()
Returns the number of vertices which belong to the same group vertex as this management vertex.
|
String |
getOptMessage() |
ManagementGate |
getOutputGate(int index)
Returns the output gate at the given index.
|
void |
read(DataInputView in) |
void |
setExecutionState(ExecutionState executionState)
Sets the current execution state of this management vertex.
|
void |
setInstanceName(String instanceName)
Sets the name of the instance this vertex currently runs on.
|
void |
setOptMessage(String optMessage) |
String |
toJson()
Returns Json representation of this ManagementVertex
|
String |
toString() |
void |
write(DataOutputView out) |
getAttachment, setAttachmentpublic ManagementVertex(ManagementGroupVertex groupVertex, ManagementVertexID id, String instanceName, int indexInGroup)
groupVertex - the management group vertex the new vertex belongs toid - the ID of the new management vertexinstanceName - the name of the instance the vertex represented by this new management vertex currently runs onindexInGroup - the index of this vertex in the management group vertex it belongs topublic String getInstanceName()
public int getNumberOfInputGates()
public int getNumberOfOutputGates()
public ManagementGate getInputGate(int index)
index - the index of the input gate to be returnednull if no such input gate existspublic ManagementGate getOutputGate(int index)
index - the index of the output gate to be returnednull if no such output gate existspublic ManagementGroupVertex getGroupVertex()
public ManagementGraph getGraph()
public ManagementVertexID getID()
public String getName()
nullpublic int getNumberOfVerticesInGroup()
public int getIndexInGroup()
public void setExecutionState(ExecutionState executionState)
executionState - the current execution state of this vertexpublic ExecutionState getExecutionState()
public void setInstanceName(String instanceName)
instanceName - the name of the instance this vertex currently runs onpublic void setOptMessage(String optMessage)
public String getOptMessage()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic String toJson()
Copyright © 2014 The Apache Software Foundation. All rights reserved.