Class 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.
    • Method Detail

      • getIoExecutor

        public Executor getIoExecutor()
      • 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