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 JobManagerSharedServices
fromConfiguration(Configuration config, BlobServer blobServer, FatalErrorHandler fatalErrorHandler)
BlobWriter
getBlobWriter()
ScheduledExecutorService
getFutureExecutor()
Executor
getIoExecutor()
LibraryCacheManager
getLibraryCacheManager()
ShuffleMaster<?>
getShuffleMaster()
void
shutdown()
Shutdown theJobMaster
services.
-
-
-
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 Exception
Shutdown theJobMaster
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(Configuration config, BlobServer blobServer, FatalErrorHandler fatalErrorHandler) throws Exception
- Throws:
Exception
-
-