public class DefaultScheduler extends SchedulerBase implements SchedulerOperations
executionVertexVersioner| Constructor and Description |
|---|
DefaultScheduler(org.slf4j.Logger log,
JobGraph jobGraph,
BackPressureStatsTracker backPressureStatsTracker,
Executor ioExecutor,
org.apache.flink.configuration.Configuration jobMasterConfiguration,
SlotProvider slotProvider,
ScheduledExecutorService futureExecutor,
ScheduledExecutor delayExecutor,
ClassLoader userCodeLoader,
CheckpointRecoveryFactory checkpointRecoveryFactory,
org.apache.flink.api.common.time.Time rpcTimeout,
BlobWriter blobWriter,
JobManagerJobMetricGroup jobManagerJobMetricGroup,
org.apache.flink.api.common.time.Time slotRequestTimeout,
ShuffleMaster<?> shuffleMaster,
JobMasterPartitionTracker partitionTracker,
SchedulingStrategyFactory schedulingStrategyFactory,
FailoverStrategy.Factory failoverStrategyFactory,
RestartBackoffTimeStrategy restartBackoffTimeStrategy,
org.apache.flink.runtime.scheduler.ExecutionVertexOperations executionVertexOperations,
ExecutionVertexVersioner executionVertexVersioner,
ExecutionSlotAllocatorFactory executionSlotAllocatorFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateSlotsAndDeploy(List<ExecutionVertexDeploymentOption> executionVertexDeploymentOptions)
Allocate slots and deploy the vertex when slots are returned.
|
protected long |
getNumberOfRestarts() |
void |
handleGlobalFailure(Throwable error) |
protected void |
scheduleOrUpdateConsumersInternal(ExecutionVertexID producerVertexId,
ResultPartitionID partitionId) |
protected void |
startSchedulingInternal() |
protected void |
updateTaskExecutionStateInternal(ExecutionVertexID executionVertexId,
TaskExecutionState taskExecutionState) |
acknowledgeCheckpoint, cancel, declineCheckpoint, failJob, getExecutionGraph, getExecutionVertex, getExecutionVertexId, getExecutionVertexIdOrThrow, getFailoverTopology, getInputsLocationsRetriever, getJobGraph, getMainThreadExecutor, getResultPartitionAvailabilityChecker, getSchedulingTopology, getTerminationFuture, notifyKvStateRegistered, notifyKvStateUnregistered, prepareExecutionGraphForNgScheduling, registerJobStatusListener, requestJob, requestJobDetails, requestJobStatus, requestKvStateLocation, requestNextInputSplit, requestOperatorBackPressureStats, requestPartitionState, resetForNewExecutions, restoreState, scheduleOrUpdateConsumers, setGlobalFailureCause, setMainThreadExecutor, startScheduling, stopWithSavepoint, suspend, transitionExecutionGraphState, transitionToScheduled, triggerSavepoint, updateAccumulators, updateTaskExecutionStatepublic DefaultScheduler(org.slf4j.Logger log,
JobGraph jobGraph,
BackPressureStatsTracker backPressureStatsTracker,
Executor ioExecutor,
org.apache.flink.configuration.Configuration jobMasterConfiguration,
SlotProvider slotProvider,
ScheduledExecutorService futureExecutor,
ScheduledExecutor delayExecutor,
ClassLoader userCodeLoader,
CheckpointRecoveryFactory checkpointRecoveryFactory,
org.apache.flink.api.common.time.Time rpcTimeout,
BlobWriter blobWriter,
JobManagerJobMetricGroup jobManagerJobMetricGroup,
org.apache.flink.api.common.time.Time slotRequestTimeout,
ShuffleMaster<?> shuffleMaster,
JobMasterPartitionTracker partitionTracker,
SchedulingStrategyFactory schedulingStrategyFactory,
FailoverStrategy.Factory failoverStrategyFactory,
RestartBackoffTimeStrategy restartBackoffTimeStrategy,
org.apache.flink.runtime.scheduler.ExecutionVertexOperations executionVertexOperations,
ExecutionVertexVersioner executionVertexVersioner,
ExecutionSlotAllocatorFactory executionSlotAllocatorFactory)
throws Exception
Exceptionprotected long getNumberOfRestarts()
getNumberOfRestarts in class SchedulerBaseprotected void startSchedulingInternal()
startSchedulingInternal in class SchedulerBaseprotected void updateTaskExecutionStateInternal(ExecutionVertexID executionVertexId, TaskExecutionState taskExecutionState)
updateTaskExecutionStateInternal in class SchedulerBasepublic void handleGlobalFailure(Throwable error)
handleGlobalFailure in interface SchedulerNGprotected void scheduleOrUpdateConsumersInternal(ExecutionVertexID producerVertexId, ResultPartitionID partitionId)
scheduleOrUpdateConsumersInternal in class SchedulerBasepublic void allocateSlotsAndDeploy(List<ExecutionVertexDeploymentOption> executionVertexDeploymentOptions)
SchedulerOperationsallocateSlotsAndDeploy in interface SchedulerOperationsexecutionVertexDeploymentOptions - The deployment options of tasks to be deployedCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.