Class ActiveResourceManagerFactory<WorkerType extends ResourceIDRetrievable>
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.ResourceManagerFactory<WorkerType>
-
- org.apache.flink.runtime.resourcemanager.active.ActiveResourceManagerFactory<WorkerType>
-
- Direct Known Subclasses:
KubernetesResourceManagerFactory
,YarnResourceManagerFactory
public abstract class ActiveResourceManagerFactory<WorkerType extends ResourceIDRetrievable> extends ResourceManagerFactory<WorkerType>
Factory class for creatingActiveResourceManager
with various implementations ofResourceManagerDriver
.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.resourcemanager.ResourceManagerFactory
log
-
-
Constructor Summary
Constructors Constructor Description ActiveResourceManagerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ResourceManager<WorkerType>
createResourceManager(Configuration configuration, ResourceID resourceId, RpcService rpcService, UUID leaderSessionId, HeartbeatServices heartbeatServices, DelegationTokenManager delegationTokenManager, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, String webInterfaceUrl, ResourceManagerMetricGroup resourceManagerMetricGroup, ResourceManagerRuntimeServices resourceManagerRuntimeServices, Executor ioExecutor)
protected abstract ResourceManagerDriver<WorkerType>
createResourceManagerDriver(Configuration configuration, String webInterfaceUrl, String rpcAddress)
static ThresholdMeter
createStartWorkerFailureRater(Configuration configuration)
protected Configuration
getEffectiveConfigurationForResourceManager(Configuration configuration)
Configuration changes in this method will be visible to onlyResourceManager
.-
Methods inherited from class org.apache.flink.runtime.resourcemanager.ResourceManagerFactory
createResourceManager, createResourceManagerProcessContext, createResourceManagerRuntimeServicesConfiguration, supportMultiLeaderSession
-
-
-
-
Method Detail
-
getEffectiveConfigurationForResourceManager
protected Configuration getEffectiveConfigurationForResourceManager(Configuration configuration)
Description copied from class:ResourceManagerFactory
Configuration changes in this method will be visible to onlyResourceManager
.- Overrides:
getEffectiveConfigurationForResourceManager
in classResourceManagerFactory<WorkerType extends ResourceIDRetrievable>
-
createResourceManager
public ResourceManager<WorkerType> createResourceManager(Configuration configuration, ResourceID resourceId, RpcService rpcService, UUID leaderSessionId, HeartbeatServices heartbeatServices, DelegationTokenManager delegationTokenManager, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, ResourceManagerMetricGroup resourceManagerMetricGroup, ResourceManagerRuntimeServices resourceManagerRuntimeServices, Executor ioExecutor) throws Exception
- Specified by:
createResourceManager
in classResourceManagerFactory<WorkerType extends ResourceIDRetrievable>
- Throws:
Exception
-
createResourceManagerDriver
protected abstract ResourceManagerDriver<WorkerType> createResourceManagerDriver(Configuration configuration, @Nullable String webInterfaceUrl, String rpcAddress) throws Exception
- Throws:
Exception
-
createStartWorkerFailureRater
public static ThresholdMeter createStartWorkerFailureRater(Configuration configuration)
-
-