public class ExecutionVertex extends Object implements AccessExecutionVertex, org.apache.flink.api.common.Archiveable<ArchivedExecutionVertex>
Execution.| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MAX_DISTINCT_LOCATIONS_TO_CONSIDER |
| 构造器和说明 |
|---|
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 int MAX_DISTINCT_LOCATIONS_TO_CONSIDER
@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 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 在接口中 AccessExecutionVertexpublic int getTotalNumberOfParallelSubtasks()
public int getMaxParallelism()
public ResourceProfile getResourceProfile()
public int getParallelSubtaskIndex()
AccessExecutionVertexgetParallelSubtaskIndex 在接口中 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 在接口中 AccessExecutionVertexpublic Collection<Execution> getCurrentExecutions()
AccessExecutionVertexgetCurrentExecutions 在接口中 AccessExecutionVertexpublic Execution getCurrentExecution(int attemptNumber)
public ExecutionState getExecutionState()
AccessExecutionVertexExecutionState for this execution vertex.getExecutionState 在接口中 AccessExecutionVertexpublic long getStateTimestamp(ExecutionState state)
AccessExecutionVertexExecutionState.getStateTimestamp 在接口中 AccessExecutionVertexstate - state for which the timestamp should be returnedpublic Optional<ErrorInfo> getFailureInfo()
AccessExecutionVertexgetFailureInfo 在接口中 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 在接口中 AccessExecutionVertexpublic ExecutionHistory getExecutionHistory()
AccessExecutionVertexgetExecutionHistory 在接口中 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> finishAllBlockingPartitions()
public ArchivedExecutionVertex archive()
archive 在接口中 org.apache.flink.api.common.Archiveable<ArchivedExecutionVertex>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.