Class NMLogAggregationStatusTracker
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.nodemanager.logaggregation.tracker.NMLogAggregationStatusTracker
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
public class NMLogAggregationStatusTracker
extends org.apache.hadoop.service.CompositeService
NMLogAggregationStatusTracker is used to cache log aggregation
status for finished applications. It will also delete the old cached
log aggregation status periodically.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.service.CompositeService
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
Fields inherited from class org.apache.hadoop.service.CompositeService
STOP_ONLY_STARTED_SERVICES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport>protected voidvoidvoidupdateLogAggregationStatus(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.api.records.LogAggregationStatus logAggregationStatus, long updateTime, String diagnosis, boolean finalized) Methods inherited from class org.apache.hadoop.service.CompositeService
addIfService, addService, getServices, removeService, serviceInitMethods 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
-
Constructor Details
-
NMLogAggregationStatusTracker
-
-
Method Details
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
serviceStop
- Overrides:
serviceStopin classorg.apache.hadoop.service.CompositeService- Throws:
Exception
-
updateLogAggregationStatus
public void updateLogAggregationStatus(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.api.records.LogAggregationStatus logAggregationStatus, long updateTime, String diagnosis, boolean finalized) -
pullCachedLogAggregationReports
public List<org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport> pullCachedLogAggregationReports()
-