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.CompositeServiceShutdownHook

    Nested 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport>
     
    protected void
     
    void
     
    void
    updateLogAggregationStatus(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, serviceInit

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NMLogAggregationStatusTracker

      public NMLogAggregationStatusTracker(Context context)
  • Method Details

    • serviceStart

      protected void serviceStart() throws Exception
      Overrides:
      serviceStart in class org.apache.hadoop.service.CompositeService
      Throws:
      Exception
    • serviceStop

      public void serviceStop() throws Exception
      Overrides:
      serviceStop in class org.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()