Class TimelineServiceV1Publisher
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.resourcemanager.metrics.AbstractSystemMetricsPublisher
org.apache.hadoop.yarn.server.resourcemanager.metrics.TimelineServiceV1Publisher
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,SystemMetricsPublisher
This class is responsible for posting application, appattempt & Container
lifecycle related events to timeline service v1.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.resourcemanager.metrics.AbstractSystemMetricsPublisher
AbstractSystemMetricsPublisher.MultiThreadedDispatcher, AbstractSystemMetricsPublisher.SystemMetricsEventType, AbstractSystemMetricsPublisher.TimelinePublishEventNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappACLsUpdated(RMApp app, String appViewACLs, long updatedTime) voidappAttemptFinished(RMAppAttempt appAttempt, RMAppAttemptState appAttemptState, RMApp app, long finishedTime) voidappAttemptRegistered(RMAppAttempt appAttempt, long registeredTime) voidappCreated(RMApp app, long createdTime) voidappFinished(RMApp app, RMAppState state, long finishedTime) voidappLaunched(RMApp app, long launchTime) voidappStateUpdated(RMApp app, org.apache.hadoop.yarn.api.records.YarnApplicationState appState, long updatedTime) voidappUpdated(RMApp app, long updatedTime) voidcontainerCreated(RMContainer container, long createdTime) voidcontainerFinished(RMContainer container, long finishedTime) protected voidserviceInit(org.apache.hadoop.conf.Configuration conf) protected voidprotected voidMethods inherited from class org.apache.hadoop.yarn.server.resourcemanager.metrics.AbstractSystemMetricsPublisher
getDispatcherMethods 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
-
TimelineServiceV1Publisher
public TimelineServiceV1Publisher()
-
-
Method Details
-
serviceInit
- Overrides:
serviceInitin classAbstractSystemMetricsPublisher- Throws:
Exception
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
appCreated
-
appLaunched
- Specified by:
appLaunchedin interfaceSystemMetricsPublisher- Overrides:
appLaunchedin classAbstractSystemMetricsPublisher
-
appFinished
-
appUpdated
-
appStateUpdated
public void appStateUpdated(RMApp app, org.apache.hadoop.yarn.api.records.YarnApplicationState appState, long updatedTime) -
appACLsUpdated
-
appAttemptRegistered
-
appAttemptFinished
public void appAttemptFinished(RMAppAttempt appAttempt, RMAppAttemptState appAttemptState, RMApp app, long finishedTime) -
containerCreated
-
containerFinished
-