public abstract class AbstractResourceManagerDriver<WorkerType extends ResourceIDRetrievable> extends Object implements ResourceManagerDriver<WorkerType>
ResourceManagerDriver
.Modifier and Type | Field and Description |
---|---|
protected Configuration |
flinkClientConfig |
protected Configuration |
flinkConfig |
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
AbstractResourceManagerDriver(Configuration flinkConfig,
Configuration flinkClientConfig) |
Modifier and Type | Method and Description |
---|---|
protected BlockedNodeRetriever |
getBlockedNodeRetriever() |
protected Executor |
getIoExecutor() |
protected ScheduledExecutor |
getMainThreadExecutor() |
protected ResourceEventHandler<WorkerType> |
getResourceEventHandler() |
void |
initialize(ResourceEventHandler<WorkerType> resourceEventHandler,
ScheduledExecutor mainThreadExecutor,
Executor ioExecutor,
BlockedNodeRetriever blockedNodeRetriever)
Initialize the deployment specific components.
|
protected abstract void |
initializeInternal()
Initialize the deployment specific components.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deregisterApplication, releaseResource, requestResource, terminate
protected final org.slf4j.Logger log
protected final Configuration flinkConfig
protected final Configuration flinkClientConfig
public AbstractResourceManagerDriver(Configuration flinkConfig, Configuration flinkClientConfig)
protected final ResourceEventHandler<WorkerType> getResourceEventHandler()
protected final ScheduledExecutor getMainThreadExecutor()
protected final Executor getIoExecutor()
protected final BlockedNodeRetriever getBlockedNodeRetriever()
public final void initialize(ResourceEventHandler<WorkerType> resourceEventHandler, ScheduledExecutor mainThreadExecutor, Executor ioExecutor, BlockedNodeRetriever blockedNodeRetriever) throws Exception
ResourceManagerDriver
initialize
in interface ResourceManagerDriver<WorkerType extends ResourceIDRetrievable>
resourceEventHandler
- Handler that handles resource events.mainThreadExecutor
- Rpc main thread executor.ioExecutor
- IO executor.blockedNodeRetriever
- To retrieve all blocked nodesException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.