Class TimelineServiceV2Publisher

java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.service.CompositeService
org.apache.hadoop.yarn.server.resourcemanager.metrics.AbstractSystemMetricsPublisher
org.apache.hadoop.yarn.server.resourcemanager.metrics.TimelineServiceV2Publisher
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.service.Service, SystemMetricsPublisher

@Private @Unstable public class TimelineServiceV2Publisher extends AbstractSystemMetricsPublisher
This class is responsible for posting application, appattempt & Container lifecycle related events to timeline service v2.
  • Constructor Details

  • Method Details

    • serviceInit

      protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
      Overrides:
      serviceInit in class AbstractSystemMetricsPublisher
      Throws:
      Exception
    • appCreated

      public void appCreated(RMApp app, long createdTime)
    • appLaunched

      public void appLaunched(RMApp app, long launchTime)
      Specified by:
      appLaunched in interface SystemMetricsPublisher
      Overrides:
      appLaunched in class AbstractSystemMetricsPublisher
    • appFinished

      public void appFinished(RMApp app, RMAppState state, long finishedTime)
    • appStateUpdated

      public void appStateUpdated(RMApp app, org.apache.hadoop.yarn.api.records.YarnApplicationState appState, long updatedTime)
    • appACLsUpdated

      public void appACLsUpdated(RMApp app, String appViewACLs, long updatedTime)
    • appUpdated

      public void appUpdated(RMApp app, long currentTimeMillis)
    • appAttemptRegistered

      public void appAttemptRegistered(RMAppAttempt appAttempt, long registeredTime)
    • appAttemptFinished

      public void appAttemptFinished(RMAppAttempt appAttempt, RMAppAttemptState appAttemtpState, RMApp app, long finishedTime)
    • containerCreated

      public void containerCreated(RMContainer container, long createdTime)
    • containerFinished

      public void containerFinished(RMContainer container, long finishedTime)