public class SpeculativeExecutionVertex extends ExecutionVertex
MAX_DISTINCT_LOCATIONS_TO_CONSIDER| 构造器和说明 |
|---|
SpeculativeExecutionVertex(ExecutionJobVertex jobVertex,
int subTaskIndex,
IntermediateResult[] producedDataSets,
org.apache.flink.api.common.time.Time timeout,
long createTimestamp,
int executionHistorySizeLimit,
int initialAttemptCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
ArchivedExecutionVertex |
archive() |
void |
archiveFailedExecution(ExecutionAttemptID executionAttemptId)
Remove execution from currentExecutions if it is failed.
|
CompletableFuture<?> |
cancel()
Cancels this ExecutionVertex.
|
boolean |
containsSinks() |
boolean |
containsSources() |
Execution |
createNewSpeculativeExecution(long timestamp) |
void |
deploy() |
void |
deployToSlot(LogicalSlot slot) |
void |
fail(Throwable t) |
Execution |
getCurrentExecution(int attemptNumber) |
Execution |
getCurrentExecutionAttempt()
Returns the current execution for this execution vertex.
|
Collection<Execution> |
getCurrentExecutions()
Returns the current executions for this execution vertex.
|
CompletableFuture<TaskManagerLocation> |
getCurrentTaskManagerLocationFuture() |
Optional<org.apache.flink.core.io.InputSplit> |
getNextInputSplit(String host,
int attemptNumber) |
Execution |
getPartitionProducer() |
Optional<TaskManagerLocation> |
getPreferredLocationBasedOnState()
Gets the preferred location to execute the current task execution attempt, based on the state
that the execution attempt will resume.
|
boolean |
isOriginalAttempt(int attemptNumber)
Returns whether the given attempt is the original execution attempt of the execution vertex,
i.e. it is created along with the creation of resetting of the execution vertex.
|
void |
markFailed(Throwable t)
This method marks the task as failed, but will make no attempt to remove task execution from
the task manager.
|
void |
resetForNewExecution()
Archives the current Execution and creates a new Execution for this vertex.
|
CompletableFuture<?> |
suspend() |
void |
tryAssignResource(LogicalSlot slot) |
addConsumedPartitionGroup, findLastAllocation, findLastLocation, finishAllBlockingPartitions, getAllConsumedPartitionGroups, getConsumedPartitionGroup, getCurrentAssignedResource, getCurrentAssignedResourceLocation, getExecutionGraphAccessor, getExecutionHistory, getExecutionState, getFailureInfo, getID, getJobId, getJobVertex, getJobvertexId, getMaxParallelism, getNumberOfInputs, getParallelSubtaskIndex, getProducedPartitions, getResourceProfile, getStateTimestamp, getTaskName, getTaskNameWithSubtaskIndex, getTotalNumberOfParallelSubtasks, toStringpublic SpeculativeExecutionVertex(ExecutionJobVertex jobVertex, int subTaskIndex, IntermediateResult[] producedDataSets, org.apache.flink.api.common.time.Time timeout, long createTimestamp, int executionHistorySizeLimit, int initialAttemptCount)
public boolean containsSources()
public boolean containsSinks()
public Execution createNewSpeculativeExecution(long timestamp)
public boolean isOriginalAttempt(int attemptNumber)
public Collection<Execution> getCurrentExecutions()
AccessExecutionVertexgetCurrentExecutions 在接口中 AccessExecutionVertexgetCurrentExecutions 在类中 ExecutionVertexpublic Execution getCurrentExecution(int attemptNumber)
getCurrentExecution 在类中 ExecutionVertexpublic Execution getPartitionProducer()
getPartitionProducer 在类中 ExecutionVertexpublic CompletableFuture<?> cancel()
ExecutionVertexcancel 在类中 ExecutionVertexpublic CompletableFuture<?> suspend()
suspend 在类中 ExecutionVertexpublic void fail(Throwable t)
fail 在类中 ExecutionVertexpublic void markFailed(Throwable t)
ExecutionVertexmarkFailed 在类中 ExecutionVertext - The exception that caused the task to fail.public void resetForNewExecution()
ExecutionVertexresetForNewExecution 在类中 ExecutionVertexpublic void archiveFailedExecution(ExecutionAttemptID executionAttemptId)
executionAttemptId - attemptID of the execution to be removedpublic Execution getCurrentExecutionAttempt()
AccessExecutionVertexgetCurrentExecutionAttempt 在接口中 AccessExecutionVertexgetCurrentExecutionAttempt 在类中 ExecutionVertexpublic Optional<org.apache.flink.core.io.InputSplit> getNextInputSplit(String host, int attemptNumber)
getNextInputSplit 在类中 ExecutionVertexpublic ArchivedExecutionVertex archive()
archive 在接口中 org.apache.flink.api.common.Archiveable<ArchivedExecutionVertex>archive 在类中 ExecutionVertexpublic void tryAssignResource(LogicalSlot slot)
tryAssignResource 在类中 ExecutionVertexpublic void deploy()
deploy 在类中 ExecutionVertexpublic void deployToSlot(LogicalSlot slot)
deployToSlot 在类中 ExecutionVertexpublic Optional<TaskManagerLocation> getPreferredLocationBasedOnState()
ExecutionVertexpublic CompletableFuture<TaskManagerLocation> getCurrentTaskManagerLocationFuture()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.