public class JobManagerSharedServices extends Object
| 构造器和说明 |
|---|
JobManagerSharedServices(ScheduledExecutorService futureExecutor,
ExecutorService ioExecutor,
LibraryCacheManager libraryCacheManager,
ShuffleMaster<?> shuffleMaster,
BlobWriter blobWriter) |
| 限定符和类型 | 方法和说明 |
|---|---|
static JobManagerSharedServices |
fromConfiguration(org.apache.flink.configuration.Configuration config,
BlobServer blobServer,
org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) |
BlobWriter |
getBlobWriter() |
ScheduledExecutorService |
getFutureExecutor() |
Executor |
getIoExecutor() |
LibraryCacheManager |
getLibraryCacheManager() |
ShuffleMaster<?> |
getShuffleMaster() |
void |
shutdown()
Shutdown the
JobMaster services. |
public JobManagerSharedServices(ScheduledExecutorService futureExecutor, ExecutorService ioExecutor, LibraryCacheManager libraryCacheManager, ShuffleMaster<?> shuffleMaster, @Nonnull BlobWriter blobWriter)
public ScheduledExecutorService getFutureExecutor()
public Executor getIoExecutor()
public LibraryCacheManager getLibraryCacheManager()
public ShuffleMaster<?> getShuffleMaster()
@Nonnull public BlobWriter getBlobWriter()
public void shutdown()
throws Exception
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.
Exception - The first Exception encountered during shutdown.public static JobManagerSharedServices fromConfiguration(org.apache.flink.configuration.Configuration config, BlobServer blobServer, org.apache.flink.runtime.rpc.FatalErrorHandler fatalErrorHandler) throws Exception
ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.