public abstract class AbstractSystemMetricsPublisher extends org.apache.hadoop.service.CompositeService implements SystemMetricsPublisher
| Modifier and Type | Class and 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 and Description |
|---|
AbstractSystemMetricsPublisher(String name) |
| Modifier and Type | Method and 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(String name)
protected org.apache.hadoop.yarn.event.Dispatcher getDispatcher()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionpublic void appLaunched(RMApp app, long launchTime)
appLaunched in interface SystemMetricsPublisherCopyright © 2008–2023 Apache Software Foundation. All rights reserved.