public class ExecutionVertex extends Object implements AccessExecutionVertex, org.apache.flink.api.common.Archiveable<ArchivedExecutionVertex>
Execution.| Modifier and Type | Field and Description |
|---|---|
static long |
NUM_BYTES_UNKNOWN |
| Constructor and Description |
|---|
ExecutionVertex(ExecutionJobVertex jobVertex,
int subTaskIndex,
IntermediateResult[] producedDataSets,
org.apache.flink.api.common.time.Time timeout,
long createTimestamp,
int executionHistorySizeLimit,
int initialAttemptCount)
Creates an ExecutionVertex.
|
public static final long NUM_BYTES_UNKNOWN
@VisibleForTesting public ExecutionVertex(ExecutionJobVertex jobVertex, int subTaskIndex, IntermediateResult[] producedDataSets, org.apache.flink.api.common.time.Time timeout, long createTimestamp, int executionHistorySizeLimit, int initialAttemptCount)
timeout - The RPC timeout to use for deploy / cancel callscreateTimestamp - The timestamp for the vertex creation, used to initialize the first
Execution with.executionHistorySizeLimit - The maximum number of historical Executions (= execution
attempts) to keep.initialAttemptCount - The attempt number of the first execution of this vertex.public ExecutionVertexInputInfo getExecutionVertexInputInfo(IntermediateDataSetID resultId)
public void setInputBytes(long inputBytes)
public long getInputBytes()
public Execution getPartitionProducer()
public org.apache.flink.api.common.JobID getJobId()
public ExecutionJobVertex getJobVertex()
public JobVertexID getJobvertexId()
public String getTaskName()
public String getTaskNameWithSubtaskIndex()
getTaskName(), 'x' is the parallel subtask index as returned by
getParallelSubtaskIndex()+ 1, and 'y' is the total number of tasks, as
returned by getTotalNumberOfParallelSubtasks().getTaskNameWithSubtaskIndex in interface AccessExecutionVertexpublic int getTotalNumberOfParallelSubtasks()
public int getMaxParallelism()
public ResourceProfile getResourceProfile()
public int getParallelSubtaskIndex()
AccessExecutionVertexgetParallelSubtaskIndex in interface AccessExecutionVertexpublic ExecutionVertexID getID()
public int getNumberOfInputs()
public List<ConsumedPartitionGroup> getAllConsumedPartitionGroups()
public ConsumedPartitionGroup getConsumedPartitionGroup(int input)
public Optional<org.apache.flink.core.io.InputSplit> getNextInputSplit(String host, int attemptNumber)
public Execution getCurrentExecutionAttempt()
AccessExecutionVertexgetCurrentExecutionAttempt in interface AccessExecutionVertexpublic Collection<Execution> getCurrentExecutions()
AccessExecutionVertexgetCurrentExecutions in interface AccessExecutionVertexpublic Execution getCurrentExecution(int attemptNumber)
public ExecutionState getExecutionState()
AccessExecutionVertexExecutionState for this execution vertex.getExecutionState in interface AccessExecutionVertexpublic long getStateTimestamp(ExecutionState state)
AccessExecutionVertexExecutionState.getStateTimestamp in interface AccessExecutionVertexstate - state for which the timestamp should be returnedpublic Optional<ErrorInfo> getFailureInfo()
AccessExecutionVertexgetFailureInfo in interface AccessExecutionVertexOptional of ErrorInfo, or an empty
Optional if no exception was caught.public CompletableFuture<TaskManagerLocation> getCurrentTaskManagerLocationFuture()
public LogicalSlot getCurrentAssignedResource()
public TaskManagerLocation getCurrentAssignedResourceLocation()
AccessExecutionVertexTaskManagerLocation for this execution vertex.getCurrentAssignedResourceLocation in interface AccessExecutionVertexpublic ExecutionHistory getExecutionHistory()
AccessExecutionVertexgetExecutionHistory in interface AccessExecutionVertexpublic Optional<TaskManagerLocation> findLastLocation()
public Optional<AllocationID> findLastAllocation()
public final InternalExecutionGraphAccessor getExecutionGraphAccessor()
public Map<IntermediateResultPartitionID,IntermediateResultPartition> getProducedPartitions()
public void addConsumedPartitionGroup(ConsumedPartitionGroup consumedPartitions)
public Optional<TaskManagerLocation> getPreferredLocationBasedOnState()
public void resetForNewExecution()
public void tryAssignResource(LogicalSlot slot)
public void deploy()
throws JobException
JobException@VisibleForTesting public void deployToSlot(LogicalSlot slot) throws JobException
JobExceptionpublic CompletableFuture<?> cancel()
public CompletableFuture<?> suspend()
public void fail(Throwable t)
public void markFailed(Throwable t)
t - The exception that caused the task to fail.@VisibleForTesting public List<IntermediateResultPartition> finishPartitionsIfNeeded()
public ArchivedExecutionVertex archive()
archive in interface org.apache.flink.api.common.Archiveable<ArchivedExecutionVertex>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.