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.Configuration
flinkClientConfig
protected org.apache.flink.configuration.Configuration
flinkConfig
protected org.slf4j.Logger
log
-
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 BlockedNodeRetriever
getBlockedNodeRetriever()
protected Executor
getIoExecutor()
protected org.apache.flink.util.concurrent.ScheduledExecutor
getMainThreadExecutor()
protected ResourceEventHandler<WorkerType>
getResourceEventHandler()
void
initialize(ResourceEventHandler<WorkerType> resourceEventHandler, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, Executor ioExecutor, BlockedNodeRetriever blockedNodeRetriever)
Initialize the deployment specific components.protected abstract void
initializeInternal()
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:ResourceManagerDriver
Initialize the deployment specific components.- Specified by:
initialize
in 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
-
-