public class JobManagerSharedServices extends Object
Constructor and Description |
---|
JobManagerSharedServices(ScheduledExecutorService scheduledExecutorService,
LibraryCacheManager libraryCacheManager,
BlobWriter blobWriter) |
Modifier and Type | Method and Description |
---|---|
static JobManagerSharedServices |
fromConfiguration(Configuration config,
BlobServer blobServer,
FatalErrorHandler fatalErrorHandler) |
BlobWriter |
getBlobWriter() |
LibraryCacheManager |
getLibraryCacheManager() |
ScheduledExecutorService |
getScheduledExecutorService() |
void |
shutdown()
Shutdown the
JobMaster services. |
public JobManagerSharedServices(ScheduledExecutorService scheduledExecutorService, LibraryCacheManager libraryCacheManager, @Nonnull BlobWriter blobWriter)
public ScheduledExecutorService getScheduledExecutorService()
public LibraryCacheManager getLibraryCacheManager()
@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)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.