public final class DefaultSlotPoolServiceSchedulerFactory extends Object implements SlotPoolServiceSchedulerFactory
SlotPoolServiceSchedulerFactory
implementation.Modifier and Type | Method and Description |
---|---|
static DefaultSlotPoolServiceSchedulerFactory |
create(SlotPoolServiceFactory slotPoolServiceFactory,
SchedulerNGFactory schedulerNGFactory) |
SchedulerNG |
createScheduler(org.slf4j.Logger log,
JobGraph jobGraph,
Executor ioExecutor,
Configuration configuration,
SlotPoolService slotPoolService,
ScheduledExecutorService futureExecutor,
ClassLoader userCodeLoader,
CheckpointRecoveryFactory checkpointRecoveryFactory,
Time rpcTimeout,
BlobWriter blobWriter,
JobManagerJobMetricGroup jobManagerJobMetricGroup,
Time slotRequestTimeout,
ShuffleMaster<?> shuffleMaster,
JobMasterPartitionTracker partitionTracker,
ExecutionDeploymentTracker executionDeploymentTracker,
long initializationTimestamp,
ComponentMainThreadExecutor mainThreadExecutor,
FatalErrorHandler fatalErrorHandler,
JobStatusListener jobStatusListener,
Collection<FailureEnricher> failureEnrichers,
BlocklistOperations blocklistOperations)
Creates a
SchedulerNG . |
SlotPoolService |
createSlotPoolService(JobID jid,
DeclarativeSlotPoolFactory declarativeSlotPoolFactory)
Creates a
SlotPoolService . |
static DefaultSlotPoolServiceSchedulerFactory |
fromConfiguration(Configuration configuration,
JobType jobType,
boolean isDynamicGraph) |
JobManagerOptions.SchedulerType |
getSchedulerType()
Returns the scheduler type this factory is creating.
|
public SlotPoolService createSlotPoolService(JobID jid, DeclarativeSlotPoolFactory declarativeSlotPoolFactory)
SlotPoolServiceSchedulerFactory
SlotPoolService
.createSlotPoolService
in interface SlotPoolServiceSchedulerFactory
jid
- jid is the JobID to pass to the servicedeclarativeSlotPoolFactory
- the declarative slot pool factorypublic JobManagerOptions.SchedulerType getSchedulerType()
SlotPoolServiceSchedulerFactory
getSchedulerType
in interface SlotPoolServiceSchedulerFactory
public SchedulerNG createScheduler(org.slf4j.Logger log, JobGraph jobGraph, Executor ioExecutor, Configuration configuration, SlotPoolService slotPoolService, ScheduledExecutorService futureExecutor, ClassLoader userCodeLoader, CheckpointRecoveryFactory checkpointRecoveryFactory, Time rpcTimeout, BlobWriter blobWriter, JobManagerJobMetricGroup jobManagerJobMetricGroup, Time slotRequestTimeout, ShuffleMaster<?> shuffleMaster, JobMasterPartitionTracker partitionTracker, ExecutionDeploymentTracker executionDeploymentTracker, long initializationTimestamp, ComponentMainThreadExecutor mainThreadExecutor, FatalErrorHandler fatalErrorHandler, JobStatusListener jobStatusListener, Collection<FailureEnricher> failureEnrichers, BlocklistOperations blocklistOperations) throws Exception
SlotPoolServiceSchedulerFactory
SchedulerNG
.createScheduler
in interface SlotPoolServiceSchedulerFactory
Exception
- if the scheduler creation failspublic static DefaultSlotPoolServiceSchedulerFactory create(SlotPoolServiceFactory slotPoolServiceFactory, SchedulerNGFactory schedulerNGFactory)
public static DefaultSlotPoolServiceSchedulerFactory fromConfiguration(Configuration configuration, JobType jobType, boolean isDynamicGraph)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.