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