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 of
ResourceManagerDriver.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.configuration.Configurationprotected final org.apache.flink.configuration.Configurationprotected final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionAbstractResourceManagerDriver(org.apache.flink.configuration.Configuration flinkConfig, org.apache.flink.configuration.Configuration flinkClientConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected final BlockedNodeRetrieverprotected final Executorprotected final org.apache.flink.util.concurrent.ScheduledExecutorprotected final ResourceEventHandler<WorkerType>final voidinitialize(ResourceEventHandler<WorkerType> resourceEventHandler, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, Executor ioExecutor, BlockedNodeRetriever blockedNodeRetriever) Initialize the deployment specific components.protected abstract voidInitialize the deployment specific components.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.runtime.resourcemanager.active.ResourceManagerDriver
deregisterApplication, releaseResource, requestResource, terminate
-
Field Details
-
log
protected final org.slf4j.Logger log -
flinkConfig
protected final org.apache.flink.configuration.Configuration flinkConfig -
flinkClientConfig
protected final org.apache.flink.configuration.Configuration flinkClientConfig
-
-
Constructor Details
-
AbstractResourceManagerDriver
public AbstractResourceManagerDriver(org.apache.flink.configuration.Configuration flinkConfig, org.apache.flink.configuration.Configuration flinkClientConfig)
-
-
Method Details
-
getResourceEventHandler
-
getMainThreadExecutor
protected final org.apache.flink.util.concurrent.ScheduledExecutor getMainThreadExecutor() -
getIoExecutor
-
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
-
initializeInternal
Initialize the deployment specific components.- Throws:
Exception
-