Interface SlotPoolServiceSchedulerFactory
- All Known Implementing Classes:
DefaultSlotPoolServiceSchedulerFactory
public interface SlotPoolServiceSchedulerFactory
Factory for
SlotPoolService and SchedulerNG.-
Method Summary
Modifier and TypeMethodDescriptioncreateScheduler(org.slf4j.Logger log, ExecutionPlan executionPlan, Executor ioExecutor, org.apache.flink.configuration.Configuration configuration, SlotPoolService slotPoolService, ScheduledExecutorService futureExecutor, ClassLoader userCodeLoader, CheckpointRecoveryFactory checkpointRecoveryFactory, Duration rpcTimeout, BlobWriter blobWriter, JobManagerJobMetricGroup jobManagerJobMetricGroup, Duration slotRequestTimeout, ShuffleMaster<?> shuffleMaster, JobMasterPartitionTracker partitionTracker, ExecutionDeploymentTracker executionDeploymentTracker, long initializationTimestamp, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler, JobStatusListener jobStatusListener, Collection<org.apache.flink.core.failure.FailureEnricher> failureEnrichers, BlocklistOperations blocklistOperations) Creates aSchedulerNG.createSlotPoolService(org.apache.flink.api.common.JobID jid, DeclarativeSlotPoolFactory declarativeSlotPoolFactory, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor componentMainThreadExecutor) Creates aSlotPoolService.org.apache.flink.configuration.JobManagerOptions.SchedulerTypeReturns the scheduler type this factory is creating.
-
Method Details
-
createSlotPoolService
SlotPoolService createSlotPoolService(org.apache.flink.api.common.JobID jid, DeclarativeSlotPoolFactory declarativeSlotPoolFactory, @Nonnull org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor componentMainThreadExecutor) Creates aSlotPoolService.- Parameters:
jid- jid is the JobID to pass to the servicedeclarativeSlotPoolFactory- the declarative slot pool factorycomponentMainThreadExecutor- component main thread executor.- Returns:
- created SlotPoolService
-
getSchedulerType
org.apache.flink.configuration.JobManagerOptions.SchedulerType getSchedulerType()Returns the scheduler type this factory is creating.- Returns:
- the scheduler type this factory is creating.
-
createScheduler
SchedulerNG createScheduler(org.slf4j.Logger log, ExecutionPlan executionPlan, Executor ioExecutor, org.apache.flink.configuration.Configuration configuration, SlotPoolService slotPoolService, ScheduledExecutorService futureExecutor, ClassLoader userCodeLoader, CheckpointRecoveryFactory checkpointRecoveryFactory, Duration rpcTimeout, BlobWriter blobWriter, JobManagerJobMetricGroup jobManagerJobMetricGroup, Duration slotRequestTimeout, ShuffleMaster<?> shuffleMaster, JobMasterPartitionTracker partitionTracker, ExecutionDeploymentTracker executionDeploymentTracker, long initializationTimestamp, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler, JobStatusListener jobStatusListener, Collection<org.apache.flink.core.failure.FailureEnricher> failureEnrichers, BlocklistOperations blocklistOperations) throws Exception Creates aSchedulerNG.- Returns:
- created SchedulerNG
- Throws:
Exception- if the scheduler creation fails
-