Class AppLevelTimelineCollectorWithAgg
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
org.apache.hadoop.yarn.server.timelineservice.collector.AppLevelTimelineCollectorWithAgg
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
Service that handles aggregations for applications
and makes use of
AppLevelTimelineCollector class for
writes to Timeline Service.
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
ConstructorsConstructorDescriptionAppLevelTimelineCollectorWithAgg(org.apache.hadoop.yarn.api.records.ApplicationId appId, String user) -
Method Summary
Modifier and TypeMethodDescriptionMethod to decide the set of timeline entity types the collector should skip on aggregations.protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods inherited from class org.apache.hadoop.yarn.server.timelineservice.collector.AppLevelTimelineCollector
getAppUser, getCurrentUser, getDelegationTokenForApp, getTimelineEntityContextMethods inherited from class org.apache.hadoop.yarn.server.timelineservice.collector.TimelineCollector
aggregateEntities, getAggregationGroups, 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
-
AppLevelTimelineCollectorWithAgg
public AppLevelTimelineCollectorWithAgg(org.apache.hadoop.yarn.api.records.ApplicationId appId, String user)
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classAppLevelTimelineCollector- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classAppLevelTimelineCollector- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classAppLevelTimelineCollector- Throws:
Exception
-
getEntityTypesSkipAggregation
Description copied from class:TimelineCollectorMethod to decide the set of timeline entity types the collector should skip on aggregations. Subclasses may want to override this method to customize their own behaviors.- Overrides:
getEntityTypesSkipAggregationin classTimelineCollector- Returns:
- A set of strings consists of all types the collector should skip.
-