Class NodeTimelineCollectorManager
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorManager
org.apache.hadoop.yarn.server.timelineservice.collector.NodeTimelineCollectorManager
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
Class on the NodeManager side that manages adding and removing collectors and
their lifecycle. Also instantiates the per-node collector webapp.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedNodeTimelineCollectorManager(boolean asAuxService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelTokenForAppCollector(AppLevelTimelineCollector appCollector) protected static org.glassfish.jersey.server.ResourceConfigprotected voiddoPostPut(org.apache.hadoop.yarn.api.records.ApplicationId appId, TimelineCollector collector) A template method that will be called byTimelineCollectorManager.postPut(ApplicationId, TimelineCollector).org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier>protected org.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocolprotected voidpostRemove(org.apache.hadoop.yarn.api.records.ApplicationId appId, TimelineCollector collector) longrenewTokenForAppCollector(AppLevelTimelineCollector appCollector) protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods inherited from class org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollectorManager
containsTimelineCollector, get, getWriter, postPut, putIfAbsent, removeMethods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeServiceMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
NodeTimelineCollectorManager
@VisibleForTesting protected NodeTimelineCollectorManager() -
NodeTimelineCollectorManager
protected NodeTimelineCollectorManager(boolean asAuxService)
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classTimelineCollectorManager- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classTimelineCollectorManager- Throws:
Exception
-
createTokenManagerService
-
getTokenManagerService
-
serviceStop
- Overrides:
serviceStopin classTimelineCollectorManager- Throws:
Exception
-
generateTokenForAppCollector
@VisibleForTesting public org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> generateTokenForAppCollector(String user) -
renewTokenForAppCollector
@VisibleForTesting public long renewTokenForAppCollector(AppLevelTimelineCollector appCollector) throws IOException - Throws:
IOException
-
cancelTokenForAppCollector
@VisibleForTesting public void cancelTokenForAppCollector(AppLevelTimelineCollector appCollector) throws IOException - Throws:
IOException
-
doPostPut
protected void doPostPut(org.apache.hadoop.yarn.api.records.ApplicationId appId, TimelineCollector collector) Description copied from class:TimelineCollectorManagerA template method that will be called byTimelineCollectorManager.postPut(ApplicationId, TimelineCollector).- Overrides:
doPostPutin classTimelineCollectorManager- Parameters:
appId- Application id of the collector.collector- The actual timeline collector that has been added.
-
postRemove
protected void postRemove(org.apache.hadoop.yarn.api.records.ApplicationId appId, TimelineCollector collector) - Overrides:
postRemovein classTimelineCollectorManager
-
configure
protected static org.glassfish.jersey.server.ResourceConfig configure() -
getNMCollectorService
@VisibleForTesting protected org.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocol getNMCollectorService() -
getRestServerBindAddress
-