Class AbstractResourceManagerDriver<WorkerType extends ResourceIDRetrievable>
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.active.AbstractResourceManagerDriver<WorkerType>
-
- All Implemented Interfaces:
ResourceManagerDriver<WorkerType>
public abstract class AbstractResourceManagerDriver<WorkerType extends ResourceIDRetrievable> extends Object implements ResourceManagerDriver<WorkerType>
Abstract common base class for implementations ofResourceManagerDriver.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.configuration.ConfigurationflinkClientConfigprotected org.apache.flink.configuration.ConfigurationflinkConfigprotected org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description AbstractResourceManagerDriver(org.apache.flink.configuration.Configuration flinkConfig, org.apache.flink.configuration.Configuration flinkClientConfig)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected BlockedNodeRetrievergetBlockedNodeRetriever()protected ExecutorgetIoExecutor()protected org.apache.flink.util.concurrent.ScheduledExecutorgetMainThreadExecutor()protected ResourceEventHandler<WorkerType>getResourceEventHandler()voidinitialize(ResourceEventHandler<WorkerType> resourceEventHandler, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, Executor ioExecutor, BlockedNodeRetriever blockedNodeRetriever)Initialize the deployment specific components.protected abstract voidinitializeInternal()Initialize the deployment specific components.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.resourcemanager.active.ResourceManagerDriver
deregisterApplication, releaseResource, requestResource, terminate
-
-
-
-
Method Detail
-
getResourceEventHandler
protected final ResourceEventHandler<WorkerType> getResourceEventHandler()
-
getMainThreadExecutor
protected final org.apache.flink.util.concurrent.ScheduledExecutor getMainThreadExecutor()
-
getIoExecutor
protected final Executor getIoExecutor()
-
getBlockedNodeRetriever
protected final BlockedNodeRetriever getBlockedNodeRetriever()
-
initialize
public final void initialize(ResourceEventHandler<WorkerType> resourceEventHandler, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, Executor ioExecutor, BlockedNodeRetriever blockedNodeRetriever) throws Exception
Description copied from interface:ResourceManagerDriverInitialize the deployment specific components.- Specified by:
initializein interfaceResourceManagerDriver<WorkerType extends ResourceIDRetrievable>- Parameters:
resourceEventHandler- Handler that handles resource events.mainThreadExecutor- Rpc main thread executor.ioExecutor- IO executor.blockedNodeRetriever- To retrieve all blocked nodes- Throws:
Exception
-
-