@InterfaceStability.Unstable
@InterfaceAudience.Public
public interface InputInitializerContext
InputInitializer| Modifier and Type | Method and Description | 
|---|---|
org.apache.hadoop.yarn.api.records.ApplicationId | 
getApplicationId()
Get the YARN application id given to the Tez Application Master 
 | 
int | 
getDAGAttemptNumber()  | 
String | 
getDAGName()
Get the name of the DAG 
 | 
String | 
getInputName()
Get the name of the input 
 | 
UserPayload | 
getInputUserPayload()
Get the user payload for the input 
 | 
int | 
getNumClusterNodes()
Get the number of nodes in the cluster 
 | 
int | 
getNumTasks()
Get the number of tasks in this vertex. 
 | 
org.apache.hadoop.yarn.api.records.Resource | 
getTotalAvailableResource()
Get the total resource allocated to this vertex. 
 | 
UserPayload | 
getUserPayload()
Get the user payload for the initializer 
 | 
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 | 
registerForVertexStateUpdates(String vertexName,
                             Set<VertexState> stateSet)
Register to get notifications on updates to the specified vertex. 
 | 
org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
String getDAGName()
String getInputName()
UserPayload getInputUserPayload()
UserPayload getUserPayload()
int getNumTasks()
org.apache.hadoop.yarn.api.records.Resource getVertexTaskResource()
org.apache.hadoop.yarn.api.records.Resource getTotalAvailableResource()
int getNumClusterNodes()
int getDAGAttemptNumber()
int getVertexNumTasks(String vertexName)
vertexName - void registerForVertexStateUpdates(String vertexName, @Nullable Set<VertexState> stateSet)
InputInitializer.onVertexStateUpdated(org.apache.tez.dag.api.event.VertexStateUpdate) 
 This method can only be invoked once. Duplicate invocations will result in an error.vertexName - the vertex name for which notifications are required.stateSet - the set of states for which notifications are required. null implies allCopyright © 2016 Apache Software Foundation. All rights reserved.