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 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

      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 interface ResourceManagerDriver<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

      protected abstract void initializeInternal() throws Exception
      Initialize the deployment specific components.
      Throws:
      Exception