org.apache.hadoop.yarn.server.resourcemanager.metrics
Class SystemMetricsPublisher
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.resourcemanager.metrics.SystemMetricsPublisher
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.service.Service
@InterfaceAudience.Private
@InterfaceStability.Unstable
public class SystemMetricsPublisher
- extends org.apache.hadoop.service.CompositeService
The class that helps RM publish metrics to the timeline server. RM will
always invoke the methods of this class regardless the service is enabled or
not. If it is disabled, publishing requests will be ignored silently.
| Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService |
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHook |
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
org.apache.hadoop.service.Service.STATE |
| Fields inherited from class org.apache.hadoop.service.CompositeService |
STOP_ONLY_STARTED_SERVICES |
|
Method Summary |
void |
appACLsUpdated(RMApp app,
String appViewACLs,
long updatedTime)
|
void |
appAttemptFinished(RMAppAttempt appAttempt,
RMAppAttemptState appAttemtpState,
RMApp app,
long finishedTime)
|
void |
appAttemptRegistered(RMAppAttempt appAttempt,
long registeredTime)
|
void |
appCreated(RMApp app,
long createdTime)
|
void |
appFinished(RMApp app,
RMAppState state,
long finishedTime)
|
void |
containerCreated(RMContainer container,
long createdTime)
|
void |
containerFinished(RMContainer container,
long finishedTime)
|
protected org.apache.hadoop.yarn.event.Dispatcher |
createDispatcher(org.apache.hadoop.conf.Configuration conf)
|
protected void |
handleSystemMetricsEvent(SystemMetricsEvent event)
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
| Methods inherited from class org.apache.hadoop.service.CompositeService |
addIfService, addService, getServices, removeService, serviceStart, serviceStop |
| Methods 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 |
SystemMetricsPublisher
public SystemMetricsPublisher()
serviceInit
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
- Overrides:
serviceInit in class org.apache.hadoop.service.CompositeService
- Throws:
Exception
appCreated
public void appCreated(RMApp app,
long createdTime)
appFinished
public void appFinished(RMApp app,
RMAppState state,
long finishedTime)
appACLsUpdated
public void appACLsUpdated(RMApp app,
String appViewACLs,
long updatedTime)
appAttemptRegistered
public void appAttemptRegistered(RMAppAttempt appAttempt,
long registeredTime)
appAttemptFinished
public void appAttemptFinished(RMAppAttempt appAttempt,
RMAppAttemptState appAttemtpState,
RMApp app,
long finishedTime)
containerCreated
public void containerCreated(RMContainer container,
long createdTime)
containerFinished
public void containerFinished(RMContainer container,
long finishedTime)
createDispatcher
protected org.apache.hadoop.yarn.event.Dispatcher createDispatcher(org.apache.hadoop.conf.Configuration conf)
handleSystemMetricsEvent
protected void handleSystemMetricsEvent(SystemMetricsEvent event)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.