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, org.apache.flink.runtime.rpc.RpcService rpcService, JobMasterConfiguration jobMasterConfiguration, ExecutionPlan executionPlan, HighAvailabilityServices haServices, SlotPoolServiceSchedulerFactory slotPoolServiceSchedulerFactory, JobManagerSharedServices jobManagerSharedServices, HeartbeatServices heartbeatServices, JobManagerJobMetricGroupFactory jobManagerJobMetricGroupFactory, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler, ClassLoader userCodeClassloader, Collection<org.apache.flink.core.failure.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 newJobMasterServicefor the given leaderSessionId and onCompletionActions.
-
-
-
Constructor Detail
-
DefaultJobMasterServiceFactory
public DefaultJobMasterServiceFactory(Executor executor, org.apache.flink.runtime.rpc.RpcService rpcService, JobMasterConfiguration jobMasterConfiguration, ExecutionPlan executionPlan, HighAvailabilityServices haServices, SlotPoolServiceSchedulerFactory slotPoolServiceSchedulerFactory, JobManagerSharedServices jobManagerSharedServices, HeartbeatServices heartbeatServices, JobManagerJobMetricGroupFactory jobManagerJobMetricGroupFactory, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler, ClassLoader userCodeClassloader, Collection<org.apache.flink.core.failure.FailureEnricher> failureEnrichers, long initializationTimestamp)
-
-
Method Detail
-
createJobMasterService
public CompletableFuture<JobMasterService> createJobMasterService(UUID leaderSessionId, OnCompletionActions onCompletionActions)
Description copied from interface:JobMasterServiceFactoryCreates a newJobMasterServicefor the given leaderSessionId and onCompletionActions.- Specified by:
createJobMasterServicein interfaceJobMasterServiceFactory- Parameters:
leaderSessionId- leaderSessionId for which to create aJobMasterServiceonCompletionActions- onCompletionActions which are given to the createdJobMasterService- Returns:
- Future which contains the newly created
JobMasterService
-
-