Interface ExecutionGraphFactory
- All Known Implementing Classes:
DefaultExecutionGraphFactory
public interface ExecutionGraphFactory
Factory for creating an
ExecutionGraph.-
Method Summary
Modifier and TypeMethodDescriptioncreateAndRestoreExecutionGraph(JobGraph jobGraph, CompletedCheckpointStore completedCheckpointStore, CheckpointsCleaner checkpointsCleaner, CheckpointIDCounter checkpointIdCounter, CheckpointStatsTracker checkpointStatsTracker, TaskDeploymentDescriptorFactory.PartitionLocationConstraint partitionLocationConstraint, long initializationTimestamp, VertexAttemptNumberStore vertexAttemptNumberStore, VertexParallelismStore vertexParallelismStore, ExecutionStateUpdateListener executionStateUpdateListener, MarkPartitionFinishedStrategy markPartitionFinishedStrategy, ExecutionPlanSchedulingContext executionPlanSchedulingContext, org.slf4j.Logger log) Create and restoreExecutionGraphfrom the givenJobGraphand services.
-
Method Details
-
createAndRestoreExecutionGraph
ExecutionGraph createAndRestoreExecutionGraph(JobGraph jobGraph, CompletedCheckpointStore completedCheckpointStore, CheckpointsCleaner checkpointsCleaner, CheckpointIDCounter checkpointIdCounter, CheckpointStatsTracker checkpointStatsTracker, TaskDeploymentDescriptorFactory.PartitionLocationConstraint partitionLocationConstraint, long initializationTimestamp, VertexAttemptNumberStore vertexAttemptNumberStore, VertexParallelismStore vertexParallelismStore, ExecutionStateUpdateListener executionStateUpdateListener, MarkPartitionFinishedStrategy markPartitionFinishedStrategy, ExecutionPlanSchedulingContext executionPlanSchedulingContext, org.slf4j.Logger log) throws Exception Create and restoreExecutionGraphfrom the givenJobGraphand services.- Parameters:
jobGraph- jobGraph to initialize the ExecutionGraph withcompletedCheckpointStore- completedCheckpointStore to pass to the CheckpointCoordinatorcheckpointsCleaner- checkpointsCleaner to pass to the CheckpointCoordinatorcheckpointIdCounter- checkpointIdCounter to pass to the CheckpointCoordinatorcheckpointStatsTracker- TheCheckpointStatsTrackerthat's used for collecting the checkpoint-related statistics.partitionLocationConstraint- partitionLocationConstraint for this jobinitializationTimestamp- initializationTimestamp when the ExecutionGraph was createdvertexAttemptNumberStore- vertexAttemptNumberStore keeping information about the vertex attempts of previous runsvertexParallelismStore- vertexMaxParallelismStore keeping information about the vertex max parallelism settingsexecutionStateUpdateListener- listener for state transitions of the individual executionslog- log to use for loggingexecutionPlanSchedulingContext- execution plan scheduling context that retrieve execution context details for adaptive batch jobs- Returns:
- restored
ExecutionGraph - Throws:
Exception- if theExecutionGraphcould not be created and restored
-