java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, SystemMetricsPublisherTimelineServiceV1Publisher, TimelineServiceV2Publisherpublic abstract class AbstractSystemMetricsPublisher extends org.apache.hadoop.service.CompositeService implements SystemMetricsPublisher
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AbstractSystemMetricsPublisher.MultiThreadedDispatcher |
Dispatches ATS related events using multiple threads.
|
protected static class |
AbstractSystemMetricsPublisher.SystemMetricsEventType |
EventType which is used while publishing the events.
|
protected static class |
AbstractSystemMetricsPublisher.TimelinePublishEvent |
TimelinePublishEvent's hash code should be based on application's id this
will ensure all the events related to a particular app goes to particular
thread of MultiThreaded dispatcher.
|
| Constructor | Description |
|---|---|
AbstractSystemMetricsPublisher(java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
appLaunched(RMApp app,
long launchTime) |
|
protected org.apache.hadoop.yarn.event.Dispatcher |
getDispatcher() |
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
addIfService, addService, getServices, removeService, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappACLsUpdated, appAttemptFinished, appAttemptRegistered, appCreated, appFinished, appStateUpdated, appUpdated, containerCreated, containerFinishedpublic AbstractSystemMetricsPublisher(java.lang.String name)
protected org.apache.hadoop.yarn.event.Dispatcher getDispatcher()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionpublic void appLaunched(RMApp app, long launchTime)
appLaunched in interface SystemMetricsPublisherCopyright © 2008–2025 Apache Software Foundation. All rights reserved.