Class JobManagerSharedServices

java.lang.Object
org.apache.flink.runtime.jobmaster.JobManagerSharedServices

public class JobManagerSharedServices extends Object
Utility class which holds all auxiliary shared services used by the JobMaster. Consequently, the JobMaster should never shut these services down.
  • Constructor Details

  • Method Details

    • getFutureExecutor

      public ScheduledExecutorService getFutureExecutor()
    • getIoExecutor

      public Executor getIoExecutor()
    • getLibraryCacheManager

      public LibraryCacheManager getLibraryCacheManager()
    • getShuffleMaster

      public ShuffleMaster<?> getShuffleMaster()
    • getBlobWriter

      @Nonnull public BlobWriter getBlobWriter()
    • shutdown

      public void shutdown() throws Exception
      Shutdown the JobMaster services.

      This method makes sure all services are closed or shut down, even when an exception occurred in the shutdown of one component. The first encountered exception is thrown, with successive exceptions added as suppressed exceptions.

      Throws:
      Exception - The first Exception encountered during shutdown.
    • fromConfiguration

      public static JobManagerSharedServices fromConfiguration(org.apache.flink.configuration.Configuration config, BlobServer blobServer, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) throws Exception
      Throws:
      Exception