public class VertexImpl extends Object implements Vertex, org.apache.hadoop.yarn.event.EventHandler<VertexEvent>
| Modifier and Type | Class and Description |
|---|---|
static class |
VertexImpl.BufferDataRecoverTransition |
static class |
VertexImpl.IgnoreInitInInitedTransition |
static class |
VertexImpl.InitTransition |
static class |
VertexImpl.NullEdgeInitializedTransition |
static class |
VertexImpl.OneToOneSourceSplitTransition |
static class |
VertexImpl.RecoverTransition |
static class |
VertexImpl.RootInputInitializedTransition |
static class |
VertexImpl.SourceVertexStartedTransition |
static class |
VertexImpl.StartRecoverTransition |
static class |
VertexImpl.StartTransition |
static class |
VertexImpl.StartWhileInitializingTransition |
static class |
VertexImpl.TerminateDuringRecoverTransition |
static class |
VertexImpl.VertexInitializedTransition |
| Modifier and Type | Field and Description |
|---|---|
protected StateChangeNotifier |
stateChangeNotifier |
protected static org.apache.hadoop.yarn.state.StateMachineFactory<VertexImpl,VertexState,VertexEventType,VertexEvent> |
stateMachineFactory |
| Constructor and Description |
|---|
VertexImpl(org.apache.tez.dag.records.TezVertexID vertexId,
org.apache.tez.dag.api.records.DAGProtos.VertexPlan vertexPlan,
String vertexName,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
TaskAttemptListener taskAttemptListener,
org.apache.hadoop.yarn.util.Clock clock,
TaskHeartbeatHandler thh,
boolean commitVertexOutputs,
AppContext appContext,
org.apache.tez.dag.api.VertexLocationHint vertexLocationHint,
Map<String,org.apache.tez.dag.app.dag.impl.DAGImpl.VertexGroupInfo> dagVertexGroups,
TaskSpecificLaunchCmdOption taskSpecificLaunchCmdOption,
StateChangeNotifier entityStatusTracker) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSharedOutputs(Set<String> outputs) |
protected void |
addTask(Task task) |
int |
compareTo(Vertex other) |
void |
constructFinalFullcounters() |
protected RootInputInitializerManager |
createRootInputInitializerManager(String dagName,
String vertexName,
org.apache.tez.dag.records.TezVertexID vertexID,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
int numTasks,
int numNodes,
org.apache.hadoop.yarn.api.records.Resource vertexTaskResource,
org.apache.hadoop.yarn.api.records.Resource totalResource) |
boolean |
equals(Object obj) |
Map<String,org.apache.tez.dag.api.RootInputLeafOutput<org.apache.tez.dag.api.InputDescriptor,org.apache.tez.dag.api.InputInitializerDescriptor>> |
getAdditionalInputs() |
Map<String,org.apache.tez.dag.api.RootInputLeafOutput<org.apache.tez.dag.api.OutputDescriptor,org.apache.tez.dag.api.OutputCommitterDescriptor>> |
getAdditionalOutputs() |
org.apache.tez.common.counters.TezCounters |
getAllCounters()
Get all the counters of this vertex.
|
AppContext |
getAppContext() |
int |
getCompletedTasks() |
DAG |
getDAG() |
List<String> |
getDiagnostics() |
int |
getDistanceFromRoot() |
List<org.apache.tez.runtime.api.impl.GroupInputSpec> |
getGroupInputSpecList(int taskIndex) |
List<org.apache.tez.runtime.api.impl.InputSpec> |
getInputSpecList(int taskIndex) |
Map<Vertex,Edge> |
getInputVertices() |
int |
getInputVerticesCount() |
String |
getLogIdentifier() |
String |
getName() |
org.apache.tez.runtime.api.OutputCommitter |
getOutputCommitter(String outputName) |
Map<String,org.apache.tez.runtime.api.OutputCommitter> |
getOutputCommitters() |
List<org.apache.tez.runtime.api.impl.OutputSpec> |
getOutputSpecList(int taskIndex) |
Map<Vertex,Edge> |
getOutputVertices() |
int |
getOutputVerticesCount() |
org.apache.tez.dag.api.ProcessorDescriptor |
getProcessorDescriptor() |
float |
getProgress() |
int |
getRunningTasks() |
Set<String> |
getSharedOutputs() |
VertexState |
getState() |
protected org.apache.hadoop.yarn.state.StateMachine<VertexState,VertexEventType,VertexEvent> |
getStateMachine() |
int |
getSucceededTasks() |
Task |
getTask(int taskIndex) |
Task |
getTask(org.apache.tez.dag.records.TezTaskID taskID) |
org.apache.tez.dag.api.TaskLocationHint |
getTaskLocationHint(org.apache.tez.dag.records.TezTaskID taskId) |
org.apache.hadoop.yarn.api.records.Resource |
getTaskResource() |
Map<org.apache.tez.dag.records.TezTaskID,Task> |
getTasks() |
VertexTerminationCause |
getTerminationCause() |
int |
getTotalTasks() |
org.apache.tez.dag.records.TezVertexID |
getVertexId() |
org.apache.tez.dag.api.records.DAGProtos.VertexPlan |
getVertexPlan() |
ProgressBuilder |
getVertexProgress() |
VertexStats |
getVertexStats() |
VertexStatusBuilder |
getVertexStatus(Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions) |
void |
handle(VertexEvent event) |
int |
hashCode() |
static org.apache.tez.common.counters.TezCounters |
incrTaskCounters(org.apache.tez.common.counters.TezCounters counters,
Collection<Task> tasks) |
VertexState |
restoreFromEvent(HistoryEvent historyEvent) |
void |
scheduleTasks(List<org.apache.tez.dag.api.VertexManagerPluginContext.TaskWithLocationHint> tasksToSchedule) |
void |
setAdditionalInputs(List<org.apache.tez.dag.api.records.DAGProtos.RootInputLeafOutputProto> inputs) |
void |
setAdditionalOutputs(List<org.apache.tez.dag.api.records.DAGProtos.RootInputLeafOutputProto> outputs) |
void |
setInputVertices(Map<Vertex,Edge> inVertices) |
void |
setOutputVertices(Map<Vertex,Edge> outVertices) |
boolean |
setParallelism(int parallelism,
org.apache.tez.dag.api.VertexLocationHint vertexLocationHint,
Map<String,org.apache.tez.dag.api.EdgeManagerPluginDescriptor> sourceEdgeManagers,
Map<String,org.apache.tez.runtime.api.InputSpecUpdate> rootInputSpecUpdates) |
void |
setVertexLocationHint(org.apache.tez.dag.api.VertexLocationHint vertexLocationHint) |
static VertexStats |
updateVertexStats(VertexStats stats,
Collection<Task> tasks) |
protected final StateChangeNotifier stateChangeNotifier
protected static final org.apache.hadoop.yarn.state.StateMachineFactory<VertexImpl,VertexState,VertexEventType,VertexEvent> stateMachineFactory
public VertexImpl(org.apache.tez.dag.records.TezVertexID vertexId,
org.apache.tez.dag.api.records.DAGProtos.VertexPlan vertexPlan,
String vertexName,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
TaskAttemptListener taskAttemptListener,
org.apache.hadoop.yarn.util.Clock clock,
TaskHeartbeatHandler thh,
boolean commitVertexOutputs,
AppContext appContext,
org.apache.tez.dag.api.VertexLocationHint vertexLocationHint,
Map<String,org.apache.tez.dag.app.dag.impl.DAGImpl.VertexGroupInfo> dagVertexGroups,
TaskSpecificLaunchCmdOption taskSpecificLaunchCmdOption,
StateChangeNotifier entityStatusTracker)
protected org.apache.hadoop.yarn.state.StateMachine<VertexState,VertexEventType,VertexEvent> getStateMachine()
public org.apache.tez.dag.records.TezVertexID getVertexId()
getVertexId in interface Vertexpublic org.apache.tez.dag.api.records.DAGProtos.VertexPlan getVertexPlan()
getVertexPlan in interface Vertexpublic int getDistanceFromRoot()
getDistanceFromRoot in interface Vertexpublic Task getTask(org.apache.tez.dag.records.TezTaskID taskID)
public int getTotalTasks()
getTotalTasks in interface Vertexpublic int getCompletedTasks()
getCompletedTasks in interface Vertexpublic int getSucceededTasks()
getSucceededTasks in interface Vertexpublic int getRunningTasks()
getRunningTasks in interface Vertexpublic org.apache.tez.common.counters.TezCounters getAllCounters()
VertexgetAllCounters in interface Vertexpublic VertexStats getVertexStats()
public static org.apache.tez.common.counters.TezCounters incrTaskCounters(org.apache.tez.common.counters.TezCounters counters,
Collection<Task> tasks)
public static VertexStats updateVertexStats(VertexStats stats, Collection<Task> tasks)
public List<String> getDiagnostics()
getDiagnostics in interface Vertexpublic float getProgress()
getProgress in interface Vertexpublic ProgressBuilder getVertexProgress()
getVertexProgress in interface Vertexpublic VertexStatusBuilder getVertexStatus(Set<org.apache.tez.dag.api.client.StatusGetOpts> statusOptions)
getVertexStatus in interface Vertexpublic org.apache.tez.dag.api.TaskLocationHint getTaskLocationHint(org.apache.tez.dag.records.TezTaskID taskId)
getTaskLocationHint in interface Vertexpublic VertexState getState()
public VertexTerminationCause getTerminationCause()
getTerminationCause in interface Vertexpublic AppContext getAppContext()
getAppContext in interface Vertexpublic VertexState restoreFromEvent(HistoryEvent historyEvent)
restoreFromEvent in interface Vertexpublic String getLogIdentifier()
getLogIdentifier in interface Vertexpublic void scheduleTasks(List<org.apache.tez.dag.api.VertexManagerPluginContext.TaskWithLocationHint> tasksToSchedule)
scheduleTasks in interface Vertexpublic boolean setParallelism(int parallelism,
org.apache.tez.dag.api.VertexLocationHint vertexLocationHint,
Map<String,org.apache.tez.dag.api.EdgeManagerPluginDescriptor> sourceEdgeManagers,
Map<String,org.apache.tez.runtime.api.InputSpecUpdate> rootInputSpecUpdates)
setParallelism in interface Vertexpublic void setVertexLocationHint(org.apache.tez.dag.api.VertexLocationHint vertexLocationHint)
setVertexLocationHint in interface Vertexpublic void handle(VertexEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<VertexEvent>protected void addTask(Task task)
protected RootInputInitializerManager createRootInputInitializerManager(String dagName, String vertexName, org.apache.tez.dag.records.TezVertexID vertexID, org.apache.hadoop.yarn.event.EventHandler eventHandler, int numTasks, int numNodes, org.apache.hadoop.yarn.api.records.Resource vertexTaskResource, org.apache.hadoop.yarn.api.records.Resource totalResource)
@InterfaceAudience.Private public void constructFinalFullcounters()
public void setInputVertices(Map<Vertex,Edge> inVertices)
setInputVertices in interface Vertexpublic void setOutputVertices(Map<Vertex,Edge> outVertices)
setOutputVertices in interface Vertexpublic void setAdditionalInputs(List<org.apache.tez.dag.api.records.DAGProtos.RootInputLeafOutputProto> inputs)
setAdditionalInputs in interface Vertex@Nullable public Map<String,org.apache.tez.runtime.api.OutputCommitter> getOutputCommitters()
getOutputCommitters in interface Vertex@Nullable @InterfaceAudience.Private public org.apache.tez.runtime.api.OutputCommitter getOutputCommitter(String outputName)
public void setAdditionalOutputs(List<org.apache.tez.dag.api.records.DAGProtos.RootInputLeafOutputProto> outputs)
setAdditionalOutputs in interface Vertex@Nullable public Map<String,org.apache.tez.dag.api.RootInputLeafOutput<org.apache.tez.dag.api.InputDescriptor,org.apache.tez.dag.api.InputInitializerDescriptor>> getAdditionalInputs()
getAdditionalInputs in interface Vertex@Nullable public Map<String,org.apache.tez.dag.api.RootInputLeafOutput<org.apache.tez.dag.api.OutputDescriptor,org.apache.tez.dag.api.OutputCommitterDescriptor>> getAdditionalOutputs()
getAdditionalOutputs in interface Vertexpublic int compareTo(Vertex other)
compareTo in interface Comparable<Vertex>public Map<Vertex,Edge> getInputVertices()
getInputVertices in interface Vertexpublic Map<Vertex,Edge> getOutputVertices()
getOutputVertices in interface Vertexpublic int getInputVerticesCount()
getInputVerticesCount in interface Vertexpublic int getOutputVerticesCount()
getOutputVerticesCount in interface Vertexpublic org.apache.tez.dag.api.ProcessorDescriptor getProcessorDescriptor()
getProcessorDescriptor in interface Vertexpublic org.apache.hadoop.yarn.api.records.Resource getTaskResource()
getTaskResource in interface Vertexpublic List<org.apache.tez.runtime.api.impl.InputSpec> getInputSpecList(int taskIndex)
getInputSpecList in interface Vertexpublic List<org.apache.tez.runtime.api.impl.OutputSpec> getOutputSpecList(int taskIndex)
getOutputSpecList in interface Vertexpublic List<org.apache.tez.runtime.api.impl.GroupInputSpec> getGroupInputSpecList(int taskIndex)
getGroupInputSpecList in interface Vertexpublic void addSharedOutputs(Set<String> outputs)
addSharedOutputs in interface Vertexpublic Set<String> getSharedOutputs()
getSharedOutputs in interface VertexCopyright © 2014 Apache Software Foundation. All rights reserved.