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
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
ConstructorsConstructorDescriptionFileSystemTimelineWriter(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 TypeMethodDescriptionvoidclose()voidflush()voidputDomain(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain) org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponseputEntities(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) toString()Methods inherited from class org.apache.hadoop.yarn.client.api.impl.TimelineWriter
doPostingObject, putDomain, putEntities
-
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
- Overrides:
toStringin classTimelineWriter
-
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:
putEntitiesin classTimelineWriter- Throws:
IOExceptionorg.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:
putDomainin classTimelineWriter- Throws:
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnException
-
close
- Overrides:
closein classTimelineWriter- Throws:
Exception
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classTimelineWriter- Throws:
IOException
-