Interface SlotPoolServiceSchedulerFactory

All Known Implementing Classes:
DefaultSlotPoolServiceSchedulerFactory

public interface SlotPoolServiceSchedulerFactory
Factory for SlotPoolService and SchedulerNG.
  • Method Details

    • createSlotPoolService

      SlotPoolService createSlotPoolService(org.apache.flink.api.common.JobID jid, DeclarativeSlotPoolFactory declarativeSlotPoolFactory, @Nonnull org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor componentMainThreadExecutor)
      Creates a SlotPoolService.
      Parameters:
      jid - jid is the JobID to pass to the service
      declarativeSlotPoolFactory - the declarative slot pool factory
      componentMainThreadExecutor - 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 a SchedulerNG.
      Returns:
      created SchedulerNG
      Throws:
      Exception - if the scheduler creation fails