Class JobManagerSharedServices
- java.lang.Object
-
- org.apache.flink.runtime.jobmaster.JobManagerSharedServices
-
public class JobManagerSharedServices extends Object
-
-
Constructor Summary
Constructors Constructor Description JobManagerSharedServices(ScheduledExecutorService futureExecutor, ExecutorService ioExecutor, LibraryCacheManager libraryCacheManager, ShuffleMaster<?> shuffleMaster, BlobWriter blobWriter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobManagerSharedServicesfromConfiguration(org.apache.flink.configuration.Configuration config, BlobServer blobServer, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler)BlobWritergetBlobWriter()ScheduledExecutorServicegetFutureExecutor()ExecutorgetIoExecutor()LibraryCacheManagergetLibraryCacheManager()ShuffleMaster<?>getShuffleMaster()voidshutdown()Shutdown theJobMasterservices.
-
-
-
Constructor Detail
-
JobManagerSharedServices
public JobManagerSharedServices(ScheduledExecutorService futureExecutor, ExecutorService ioExecutor, LibraryCacheManager libraryCacheManager, ShuffleMaster<?> shuffleMaster, @Nonnull BlobWriter blobWriter)
-
-
Method Detail
-
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 ExceptionShutdown theJobMasterservices.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
-
-