java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Servicepublic class NMTimelinePublisher
extends org.apache.hadoop.service.CompositeService
| Constructor | Description |
|---|---|
NMTimelinePublisher(Context context) |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.apache.hadoop.yarn.event.AsyncDispatcher |
createDispatcher() |
|
void |
createTimelineClient(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
|
protected void |
handleNMTimelineEvent(NMTimelineEvent event) |
|
void |
publishApplicationEvent(ApplicationEvent event) |
|
void |
publishContainerEvent(ContainerEvent event) |
|
void |
publishLocalizationEvent(LocalizationEvent event) |
|
void |
reportContainerResourceUsage(Container container,
java.lang.Long pmemUsage,
java.lang.Float cpuUsagePercentPerCore) |
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
|
void |
setTimelineServiceAddress(org.apache.hadoop.yarn.api.records.ApplicationId appId,
java.lang.String collectorAddr) |
|
void |
stopTimelineClient(org.apache.hadoop.yarn.api.records.ApplicationId appId) |
addIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic NMTimelinePublisher(Context context)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected org.apache.hadoop.yarn.event.AsyncDispatcher createDispatcher()
protected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.CompositeServicejava.lang.Exceptionprotected void handleNMTimelineEvent(NMTimelineEvent event)
public void reportContainerResourceUsage(Container container, java.lang.Long pmemUsage, java.lang.Float cpuUsagePercentPerCore)
public void publishApplicationEvent(ApplicationEvent event)
public void publishContainerEvent(ContainerEvent event)
public void publishLocalizationEvent(LocalizationEvent event)
public void createTimelineClient(org.apache.hadoop.yarn.api.records.ApplicationId appId)
public void stopTimelineClient(org.apache.hadoop.yarn.api.records.ApplicationId appId)
public void setTimelineServiceAddress(org.apache.hadoop.yarn.api.records.ApplicationId appId,
java.lang.String collectorAddr)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.