Class AppLevelTimelineCollector
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollector
org.apache.hadoop.yarn.server.timelineservice.collector.AppLevelTimelineCollector
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
- Direct Known Subclasses:
AppLevelTimelineCollectorWithAgg
Service that handles writes to the timeline service and writes them to the
backing storage for a given YARN application.
App-related lifecycle management is handled by this service.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollector
TimelineCollector.AggregationStatusTableNested 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.yarn.server.timelineservice.collector.TimelineCollector
SEPARATORFields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES -
Constructor Summary
ConstructorsConstructorDescriptionAppLevelTimelineCollector(org.apache.hadoop.yarn.api.records.ApplicationId appId) AppLevelTimelineCollector(org.apache.hadoop.yarn.api.records.ApplicationId appId, String user) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.security.UserGroupInformationorg.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier>protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods inherited from class org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollector
aggregateEntities, getAggregationGroups, getEntityTypesSkipAggregation, isReadyToAggregate, putDomain, putEntities, putEntitiesAsync, setReadyToAggregate, setWriterMethods 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
-
AppLevelTimelineCollector
public AppLevelTimelineCollector(org.apache.hadoop.yarn.api.records.ApplicationId appId) -
AppLevelTimelineCollector
public AppLevelTimelineCollector(org.apache.hadoop.yarn.api.records.ApplicationId appId, String user)
-
-
Method Details
-
getCurrentUser
public org.apache.hadoop.security.UserGroupInformation getCurrentUser() -
getAppUser
-
getDelegationTokenForApp
@VisibleForTesting public org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> getDelegationTokenForApp() -
serviceInit
- Overrides:
serviceInitin classTimelineCollector- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classTimelineCollector- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classTimelineCollector- Throws:
Exception
-
getTimelineEntityContext
- Specified by:
getTimelineEntityContextin classTimelineCollector
-