Class FileSystemTimelineWriter

java.lang.Object
org.apache.hadoop.yarn.client.api.impl.TimelineWriter
org.apache.hadoop.yarn.client.api.impl.FileSystemTimelineWriter
All Implemented Interfaces:
Flushable

@Private @Unstable public class FileSystemTimelineWriter extends TimelineWriter
A simple writer class for storing Timeline data in any storage that implements a basic FileSystem interface. This writer is used for ATSv1.5.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileSystemTimelineWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.security.UserGroupInformation authUgi, javax.ws.rs.client.Client client, URI resURI, net.jodah.failsafe.RetryPolicy<Object> retryPolicy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
    putDomain(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
     
    org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse
    putEntities(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId groupId, org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities)
     
     

    Methods inherited from class org.apache.hadoop.yarn.client.api.impl.TimelineWriter

    doPostingObject, putDomain, putEntities

    Methods inherited from class java.lang.Object

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

    • FileSystemTimelineWriter

      public FileSystemTimelineWriter(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.security.UserGroupInformation authUgi, javax.ws.rs.client.Client client, URI resURI, net.jodah.failsafe.RetryPolicy<Object> retryPolicy) throws IOException
      Throws:
      IOException
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class TimelineWriter
    • putEntities

      public org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse putEntities(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.timeline.TimelineEntityGroupId groupId, org.apache.hadoop.yarn.api.records.timeline.TimelineEntity... entities) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
      Specified by:
      putEntities in class TimelineWriter
      Throws:
      IOException
      org.apache.hadoop.yarn.exceptions.YarnException
    • putDomain

      public void putDomain(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
      Specified by:
      putDomain in class TimelineWriter
      Throws:
      IOException
      org.apache.hadoop.yarn.exceptions.YarnException
    • close

      public void close() throws Exception
      Overrides:
      close in class TimelineWriter
      Throws:
      Exception
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class TimelineWriter
      Throws:
      IOException