Class DefaultJobMasterServiceFactory
- java.lang.Object
-
- org.apache.flink.runtime.jobmaster.factories.DefaultJobMasterServiceFactory
-
- All Implemented Interfaces:
JobMasterServiceFactory
public class DefaultJobMasterServiceFactory extends Object implements JobMasterServiceFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultJobMasterServiceFactory(Executor executor, RpcService rpcService, JobMasterConfiguration jobMasterConfiguration, ExecutionPlan executionPlan, HighAvailabilityServices haServices, SlotPoolServiceSchedulerFactory slotPoolServiceSchedulerFactory, JobManagerSharedServices jobManagerSharedServices, HeartbeatServices heartbeatServices, JobManagerJobMetricGroupFactory jobManagerJobMetricGroupFactory, FatalErrorHandler fatalErrorHandler, ClassLoader userCodeClassloader, Collection<FailureEnricher> failureEnrichers, long initializationTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<JobMasterService>
createJobMasterService(UUID leaderSessionId, OnCompletionActions onCompletionActions)
Creates a newJobMasterService
for the given leaderSessionId and onCompletionActions.
-
-
-
Constructor Detail
-
DefaultJobMasterServiceFactory
public DefaultJobMasterServiceFactory(Executor executor, RpcService rpcService, JobMasterConfiguration jobMasterConfiguration, ExecutionPlan executionPlan, HighAvailabilityServices haServices, SlotPoolServiceSchedulerFactory slotPoolServiceSchedulerFactory, JobManagerSharedServices jobManagerSharedServices, HeartbeatServices heartbeatServices, JobManagerJobMetricGroupFactory jobManagerJobMetricGroupFactory, FatalErrorHandler fatalErrorHandler, ClassLoader userCodeClassloader, Collection<FailureEnricher> failureEnrichers, long initializationTimestamp)
-
-
Method Detail
-
createJobMasterService
public CompletableFuture<JobMasterService> createJobMasterService(UUID leaderSessionId, OnCompletionActions onCompletionActions)
Description copied from interface:JobMasterServiceFactory
Creates a newJobMasterService
for the given leaderSessionId and onCompletionActions.- Specified by:
createJobMasterService
in interfaceJobMasterServiceFactory
- Parameters:
leaderSessionId
- leaderSessionId for which to create aJobMasterService
onCompletionActions
- onCompletionActions which are given to the createdJobMasterService
- Returns:
- Future which contains the newly created
JobMasterService
-
-