|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VertexManagerPluginContext
Object with API's to interact with the Tez execution engine
| Method Summary | |
|---|---|
void |
addRootInputEvents(String inputName,
Collection<RootInputDataInformationEvent> events)
Allows a VertexManagerPlugin to assign Events for Root Inputs For regular Event Routing changes - the EdgeManager should be configured via the setVertexParallelism method |
int |
getDAGAttemptNumber()
|
Map<String,EdgeProperty> |
getInputVertexEdgeProperties()
Get the edge properties on the input edges of this vertex. |
int |
getNumClusterNodes()
Get the number of nodes in the cluster |
org.apache.hadoop.yarn.api.records.Resource |
getTotalAVailableResource()
Get the total resource allocated to this vertex. |
byte[] |
getUserPayload()
Get the payload set for the plugin |
Set<String> |
getVertexInputNames()
Get the names of the non-vertex inputs of this vertex. |
String |
getVertexName()
Get the name of the vertex |
int |
getVertexNumTasks(String vertexName)
Get the number of tasks in the given vertex |
org.apache.hadoop.yarn.api.records.Resource |
getVertexTaskResource()
Get the resource allocated to a task of this vertex |
void |
scheduleVertexTasks(List<Integer> taskIDs)
Notify the vertex to start the given tasks |
void |
setVertexLocationHint(VertexLocationHint locationHint)
Set the placement hint for tasks in this vertex |
boolean |
setVertexParallelism(int parallelism,
VertexLocationHint locationHint,
Map<String,EdgeManagerDescriptor> sourceEdgeManagers)
Set the new parallelism (number of tasks) of this vertex. |
| Method Detail |
|---|
Map<String,EdgeProperty> getInputVertexEdgeProperties()
String getVertexName()
byte[] getUserPayload()
int getVertexNumTasks(String vertexName)
vertexName -
org.apache.hadoop.yarn.api.records.Resource getVertexTaskResource()
org.apache.hadoop.yarn.api.records.Resource getTotalAVailableResource()
int getNumClusterNodes()
boolean setVertexParallelism(int parallelism,
VertexLocationHint locationHint,
Map<String,EdgeManagerDescriptor> sourceEdgeManagers)
parallelism - New number of tasks in the vertexlocationHint - the placement policy for tasks.sourceEdgeManagers - Edge Managers to be updated
void addRootInputEvents(String inputName,
Collection<RootInputDataInformationEvent> events)
inputName - The input name associated with the eventevents - The list of Events to be assigned to various tasks belonging to
the Vertex. The target index on individual events represents the
task to which events need to be sent.void scheduleVertexTasks(List<Integer> taskIDs)
taskIDs - Indices of the tasks to be startedSet<String> getVertexInputNames()
void setVertexLocationHint(VertexLocationHint locationHint)
locationHint - int getDAGAttemptNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||