public class DefaultJobMasterServiceFactory extends Object implements JobMasterServiceFactory
Constructor and Description |
---|
DefaultJobMasterServiceFactory(Executor executor,
RpcService rpcService,
JobMasterConfiguration jobMasterConfiguration,
JobGraph jobGraph,
HighAvailabilityServices haServices,
SlotPoolServiceSchedulerFactory slotPoolServiceSchedulerFactory,
JobManagerSharedServices jobManagerSharedServices,
HeartbeatServices heartbeatServices,
JobManagerJobMetricGroupFactory jobManagerJobMetricGroupFactory,
FatalErrorHandler fatalErrorHandler,
ClassLoader userCodeClassloader,
Collection<FailureEnricher> failureEnrichers,
long initializationTimestamp) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<JobMasterService> |
createJobMasterService(UUID leaderSessionId,
OnCompletionActions onCompletionActions)
Creates a new
JobMasterService for the given leaderSessionId and onCompletionActions. |
public DefaultJobMasterServiceFactory(Executor executor, RpcService rpcService, JobMasterConfiguration jobMasterConfiguration, JobGraph jobGraph, HighAvailabilityServices haServices, SlotPoolServiceSchedulerFactory slotPoolServiceSchedulerFactory, JobManagerSharedServices jobManagerSharedServices, HeartbeatServices heartbeatServices, JobManagerJobMetricGroupFactory jobManagerJobMetricGroupFactory, FatalErrorHandler fatalErrorHandler, ClassLoader userCodeClassloader, Collection<FailureEnricher> failureEnrichers, long initializationTimestamp)
public CompletableFuture<JobMasterService> createJobMasterService(UUID leaderSessionId, OnCompletionActions onCompletionActions)
JobMasterServiceFactory
JobMasterService
for the given leaderSessionId and onCompletionActions.createJobMasterService
in interface JobMasterServiceFactory
leaderSessionId
- leaderSessionId for which to create a JobMasterService
onCompletionActions
- onCompletionActions which are given to the created JobMasterService
JobMasterService
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.