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