public class JobManagerSharedServices extends Object
Constructor and Description |
---|
JobManagerSharedServices(ScheduledExecutorService futureExecutor,
ExecutorService ioExecutor,
LibraryCacheManager libraryCacheManager,
ShuffleMaster<?> shuffleMaster,
BlobWriter blobWriter) |
Modifier and Type | Method and Description |
---|---|
static JobManagerSharedServices |
fromConfiguration(Configuration config,
BlobServer blobServer,
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(Configuration config, BlobServer blobServer, FatalErrorHandler fatalErrorHandler) throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.