Interface InternalExecutionGraphAccessor
- All Known Implementing Classes:
DefaultExecutionGraph
public interface InternalExecutionGraphAccessor
This interface encapsulates all methods needed by ExecutionJobVertex / ExecutionVertices /
Execution from the DefaultExecutionGraph.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteBlobs(List<PermanentBlobKey> blobKeys) voidderegisterExecution(Execution exec) voidFails the execution graph globally.getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateResultPartition) Get the shuffle descriptors of the cluster partitions ordered by partition number.Returns the ExecutionContext associated with this ExecutionGraph.org.apache.flink.api.common.JobIDgetJobID()org.apache.flink.runtime.concurrent.ComponentMainThreadExecutorgetJobVertexInputInfo(JobVertexID jobVertexId, IntermediateDataSetID resultId) Get the input info of a certain input of a certain job vertex.ShuffleMaster<? extends ShuffleDescriptor>booleanvoidvoidvoidnotifyExecutionChange(Execution execution, ExecutionState previousState, ExecutionState newExecutionState) voidnotifySchedulerNgAboutInternalTaskFailure(ExecutionAttemptID attemptId, Throwable t, boolean cancelTask, boolean releasePartitions) voidregisterExecution(Execution exec)
-
Method Details
-
getUserClassLoader
ClassLoader getUserClassLoader() -
getJobID
org.apache.flink.api.common.JobID getJobID() -
getBlobWriter
BlobWriter getBlobWriter() -
getFutureExecutor
Executor getFutureExecutor()Returns the ExecutionContext associated with this ExecutionGraph.- Returns:
- ExecutionContext associated with this ExecutionGraph
-
getJobMasterMainThreadExecutor
@Nonnull org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor getJobMasterMainThreadExecutor() -
getShuffleMaster
ShuffleMaster<? extends ShuffleDescriptor> getShuffleMaster() -
getPartitionTracker
JobMasterPartitionTracker getPartitionTracker() -
registerExecution
-
deregisterExecution
-
getPartitionGroupReleaseStrategy
PartitionGroupReleaseStrategy getPartitionGroupReleaseStrategy() -
jobVertexFinished
void jobVertexFinished() -
jobVertexUnFinished
void jobVertexUnFinished() -
getExecutionDeploymentListener
ExecutionDeploymentListener getExecutionDeploymentListener() -
failGlobal
Fails the execution graph globally.This global failure is meant to be triggered in cases where the consistency of the execution graph' state cannot be guaranteed any more (for example when catching unexpected exceptions that indicate a bug or an unexpected call race), and where a full restart is the safe way to get consistency back.
- Parameters:
t- The exception that caused the failure.
-
notifyExecutionChange
void notifyExecutionChange(Execution execution, ExecutionState previousState, ExecutionState newExecutionState) -
notifySchedulerNgAboutInternalTaskFailure
void notifySchedulerNgAboutInternalTaskFailure(ExecutionAttemptID attemptId, Throwable t, boolean cancelTask, boolean releasePartitions) -
getEdgeManager
EdgeManager getEdgeManager() -
getExecutionVertexOrThrow
-
getResultPartitionOrThrow
-
deleteBlobs
-
getJobVertex
-
isDynamic
boolean isDynamic() -
getExecutionGraphID
ExecutionGraphID getExecutionGraphID() -
getClusterPartitionShuffleDescriptors
List<ShuffleDescriptor> getClusterPartitionShuffleDescriptors(IntermediateDataSetID intermediateResultPartition) Get the shuffle descriptors of the cluster partitions ordered by partition number. -
getMarkPartitionFinishedStrategy
MarkPartitionFinishedStrategy getMarkPartitionFinishedStrategy() -
getJobVertexInputInfo
Get the input info of a certain input of a certain job vertex.- Parameters:
jobVertexId- the job vertex idresultId- the input(intermediate result) id- Returns:
- the input info
-
getTaskDeploymentDescriptorFactory
TaskDeploymentDescriptorFactory getTaskDeploymentDescriptorFactory()
-