@InterfaceAudience.Private @InterfaceStability.Unstable public class NodeTimelineCollectorManager extends TimelineCollectorManager
Modifier | Constructor and Description |
---|---|
protected |
NodeTimelineCollectorManager() |
protected |
NodeTimelineCollectorManager(boolean asAuxService) |
Modifier and Type | Method and Description |
---|---|
void |
cancelTokenForAppCollector(AppLevelTimelineCollector appCollector) |
protected TimelineV2DelegationTokenSecretManagerService |
createTokenManagerService() |
protected void |
doPostPut(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector)
A template method that will be called by
TimelineCollectorManager.postPut(ApplicationId, TimelineCollector) . |
org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> |
generateTokenForAppCollector(String user) |
protected org.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocol |
getNMCollectorService() |
String |
getRestServerBindAddress() |
TimelineV2DelegationTokenSecretManagerService |
getTokenManagerService() |
protected void |
postRemove(org.apache.hadoop.yarn.api.records.ApplicationId appId,
TimelineCollector collector) |
long |
renewTokenForAppCollector(AppLevelTimelineCollector appCollector) |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
containsTimelineCollector, get, getWriter, postPut, putIfAbsent, remove
addIfService, addService, getServices, removeService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
@VisibleForTesting protected NodeTimelineCollectorManager()
protected NodeTimelineCollectorManager(boolean asAuxService)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class TimelineCollectorManager
Exception
protected void serviceStart() throws Exception
serviceStart
in class TimelineCollectorManager
Exception
protected TimelineV2DelegationTokenSecretManagerService createTokenManagerService()
@VisibleForTesting public TimelineV2DelegationTokenSecretManagerService getTokenManagerService()
protected void serviceStop() throws Exception
serviceStop
in class TimelineCollectorManager
Exception
@VisibleForTesting public org.apache.hadoop.security.token.Token<org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier> generateTokenForAppCollector(String user)
@VisibleForTesting public long renewTokenForAppCollector(AppLevelTimelineCollector appCollector) throws IOException
IOException
@VisibleForTesting public void cancelTokenForAppCollector(AppLevelTimelineCollector appCollector) throws IOException
IOException
protected void doPostPut(org.apache.hadoop.yarn.api.records.ApplicationId appId, TimelineCollector collector)
TimelineCollectorManager
TimelineCollectorManager.postPut(ApplicationId, TimelineCollector)
.doPostPut
in class TimelineCollectorManager
appId
- Application id of the collector.collector
- The actual timeline collector that has been added.protected void postRemove(org.apache.hadoop.yarn.api.records.ApplicationId appId, TimelineCollector collector)
postRemove
in class TimelineCollectorManager
@VisibleForTesting protected org.apache.hadoop.yarn.server.api.CollectorNodemanagerProtocol getNMCollectorService()
@VisibleForTesting public String getRestServerBindAddress()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.