org.apache.hadoop.yarn.server.timeline
Interface TimelineWriter

All Known Subinterfaces:
TimelineStore
All Known Implementing Classes:
LeveldbTimelineStore, MemoryTimelineStore

@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface TimelineWriter

This interface is for storing timeline information.


Method Summary
 void put(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
          Store domain information to the timeline store.
 org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse put(org.apache.hadoop.yarn.api.records.timeline.TimelineEntities data)
          Stores entity information to the timeline store.
 

Method Detail

put

org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse put(org.apache.hadoop.yarn.api.records.timeline.TimelineEntities data)
                                                                    throws IOException
Stores entity information to the timeline store. Any errors occurring for individual put request objects will be reported in the response.

Parameters:
data - a TimelineEntities object.
Returns:
a TimelinePutResponse object.
Throws:
IOException

put

void put(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
         throws IOException
Store domain information to the timeline store. If A domain of the same ID already exists in the timeline store, it will be COMPLETELY updated with the given domain.

Parameters:
domain - a TimelineDomain object
Throws:
IOException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.