@InterfaceAudience.Private
@InterfaceStability.Unstable
public class TimelineCollectorManager
extends org.apache.hadoop.service.CompositeService
| Constructor and Description |
|---|
TimelineCollectorManager(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTimelineCollector(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Returns whether the collector for the specified id exists in this
collection.
|
protected void |
doPostPut(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector)
A template method that will be called by
postPut(ApplicationId, TimelineCollector). |
TimelineCollector |
get(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Returns the collector for the specified id.
|
protected TimelineWriter |
getWriter() |
void |
postPut(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector)
Callback handler for the timeline collector manager when a collector has
been added into the collector map.
|
protected void |
postRemove(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector) |
TimelineCollector |
putIfAbsent(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector)
Put the collector into the collection if an collector mapped by id does
not exist.
|
boolean |
remove(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Removes the collector for the specified id.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
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 TimelineCollectorManager(String name)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceExceptionprotected TimelineWriter getWriter()
public TimelineCollector putIfAbsent(org.apache.hadoop.yarn.api.records.ApplicationId appId, TimelineCollector collector)
appId - Application Id for which collector needs to be put.collector - timeline collector to be put.org.apache.hadoop.yarn.exceptions.YarnRuntimeException - if there was any exception in initializing
and starting the app level servicepublic void postPut(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector)
appId - Application id of the collector.collector - The actual timeline collector that has been added.protected void doPostPut(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector)
postPut(ApplicationId, TimelineCollector).appId - Application id of the collector.collector - The actual timeline collector that has been added.public boolean remove(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId - Application Id to remove.protected void postRemove(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector)
public TimelineCollector get(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId - Application Id for which we need to get the collector.public boolean containsTimelineCollector(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId - Application Id.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.