public class DefaultScheduler extends SchedulerBase implements SchedulerOperations
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionDeployer |
executionDeployer |
protected ExecutionSlotAllocator |
executionSlotAllocator |
protected FailoverStrategy |
failoverStrategy |
protected org.slf4j.Logger |
log |
protected SchedulingStrategy |
schedulingStrategy |
protected ShuffleMaster<?> |
shuffleMaster |
executionVertexVersioner, inputsLocationsRetriever, jobInfo, jobManagerJobMetricGroup, operatorCoordinatorHandler, stateLocationRetriever| Modifier | Constructor and Description |
|---|---|
protected |
DefaultScheduler(org.slf4j.Logger log,
JobGraph jobGraph,
Executor ioExecutor,
org.apache.flink.configuration.Configuration jobMasterConfiguration,
Consumer<org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor> startUpAction,
org.apache.flink.util.concurrent.ScheduledExecutor delayExecutor,
ClassLoader userCodeLoader,
CheckpointsCleaner checkpointsCleaner,
CheckpointRecoveryFactory checkpointRecoveryFactory,
JobManagerJobMetricGroup jobManagerJobMetricGroup,
SchedulingStrategyFactory schedulingStrategyFactory,
FailoverStrategy.Factory failoverStrategyFactory,
RestartBackoffTimeStrategy restartBackoffTimeStrategy,
ExecutionOperations executionOperations,
ExecutionVertexVersioner executionVertexVersioner,
ExecutionSlotAllocatorFactory executionSlotAllocatorFactory,
long initializationTimestamp,
org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor,
JobStatusListener jobStatusListener,
Collection<org.apache.flink.core.failure.FailureEnricher> failureEnrichers,
ExecutionGraphFactory executionGraphFactory,
ShuffleMaster<?> shuffleMaster,
org.apache.flink.api.common.time.Time rpcTimeout,
VertexParallelismStore vertexParallelismStore,
ExecutionDeployer.Factory executionDeployerFactory) |
acknowledgeCheckpoint, archiveFromFailureHandlingResult, archiveGlobalFailure, cancel, closeAsync, computeVertexParallelismStore, computeVertexParallelismStore, computeVertexParallelismStore, computeVertexParallelismStore, declineCheckpoint, deliverCoordinationRequestToCoordinator, deliverOperatorEventToCoordinator, failJob, getDefaultMaxParallelism, getExceptionHistory, getExecutionGraph, getExecutionJobVertex, getExecutionVertex, getJobGraph, getJobId, getJobTerminationFuture, getMainThreadExecutor, getMarkPartitionFinishedStrategy, getResultPartitionAvailabilityChecker, getSchedulingTopology, notifyEndOfData, notifyKvStateRegistered, notifyKvStateUnregistered, registerJobMetrics, reportCheckpointMetrics, reportInitializationMetrics, requestCheckpointStats, requestJob, requestJobStatus, requestKvStateLocation, requestNextInputSplit, requestPartitionState, resetForNewExecution, resetForNewExecutions, restoreState, setGlobalFailureCause, startCheckpointScheduler, startScheduling, stopCheckpointScheduler, stopWithSavepoint, transitionExecutionGraphState, transitionToRunning, transitionToScheduled, triggerCheckpoint, triggerSavepoint, updateAccumulators, updateTaskExecutionStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequestJobResourceRequirements, updateJobResourceRequirements, updateTaskExecutionStateprotected final org.slf4j.Logger log
protected final ExecutionSlotAllocator executionSlotAllocator
protected final SchedulingStrategy schedulingStrategy
protected final ShuffleMaster<?> shuffleMaster
protected final ExecutionDeployer executionDeployer
protected final FailoverStrategy failoverStrategy
protected DefaultScheduler(org.slf4j.Logger log,
JobGraph jobGraph,
Executor ioExecutor,
org.apache.flink.configuration.Configuration jobMasterConfiguration,
Consumer<org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor> startUpAction,
org.apache.flink.util.concurrent.ScheduledExecutor delayExecutor,
ClassLoader userCodeLoader,
CheckpointsCleaner checkpointsCleaner,
CheckpointRecoveryFactory checkpointRecoveryFactory,
JobManagerJobMetricGroup jobManagerJobMetricGroup,
SchedulingStrategyFactory schedulingStrategyFactory,
FailoverStrategy.Factory failoverStrategyFactory,
RestartBackoffTimeStrategy restartBackoffTimeStrategy,
ExecutionOperations executionOperations,
ExecutionVertexVersioner executionVertexVersioner,
ExecutionSlotAllocatorFactory executionSlotAllocatorFactory,
long initializationTimestamp,
org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor,
JobStatusListener jobStatusListener,
Collection<org.apache.flink.core.failure.FailureEnricher> failureEnrichers,
ExecutionGraphFactory executionGraphFactory,
ShuffleMaster<?> shuffleMaster,
org.apache.flink.api.common.time.Time rpcTimeout,
VertexParallelismStore vertexParallelismStore,
ExecutionDeployer.Factory executionDeployerFactory)
throws Exception
Exceptionprotected long getNumberOfRestarts()
getNumberOfRestarts in class SchedulerBaseprotected void cancelAllPendingSlotRequestsInternal()
cancelAllPendingSlotRequestsInternal in class SchedulerBaseprotected void startSchedulingInternal()
startSchedulingInternal in class SchedulerBaseprotected void onTaskFinished(Execution execution, IOMetrics ioMetrics)
onTaskFinished in class SchedulerBaseprotected void onTaskFailed(Execution execution)
onTaskFailed in class SchedulerBaseprotected void handleTaskFailure(Execution failedExecution, @Nullable Throwable error)
protected FailureHandlingResult recordTaskFailure(Execution failedExecution, @Nullable Throwable error)
protected void notifyCoordinatorsAboutTaskFailure(Execution execution, @Nullable Throwable error)
public void handleGlobalFailure(Throwable error)
GlobalFailureHandlerhandleGlobalFailure in interface GlobalFailureHandlererror - A cause that describes the global failure.protected void maybeRestartTasks(FailureHandlingResult failureHandlingResult)
protected FailureHandlingResultSnapshot createFailureHandlingResultSnapshot(FailureHandlingResult failureHandlingResult)
protected CompletableFuture<?> cancelExecution(Execution execution)
protected void cancelAllPendingSlotRequestsForVertex(ExecutionVertexID executionVertexId)
public void allocateSlotsAndDeploy(List<ExecutionVertexID> verticesToDeploy)
SchedulerOperationsallocateSlotsAndDeploy in interface SchedulerOperationsverticesToDeploy - The execution vertices to deployCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.