@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface TimelineWriter
extends org.apache.hadoop.service.Service
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse |
aggregate(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity data,
TimelineAggregationTrack track)
Aggregates the entity information to the timeline store based on which
track this entity is to be rolled up to The tracks along which aggregations
are to be done are given by
TimelineAggregationTrack
Any errors occurring for individual write request objects will be reported
in the response. |
void |
flush()
Flushes the data to the backend storage.
|
org.apache.hadoop.yarn.api.records.timeline.TimelineHealth |
getHealthStatus()
Check if writer connection is working properly.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse |
write(TimelineCollectorContext context,
org.apache.hadoop.yarn.api.records.timelineservice.TimelineDomain domain)
Stores
TimelineDomain object to the timeline
store. |
org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse |
write(TimelineCollectorContext context,
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntities data,
org.apache.hadoop.security.UserGroupInformation callerUgi)
Stores the entire information in
TimelineEntities to the timeline
store. |
org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse write(TimelineCollectorContext context, org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntities data, org.apache.hadoop.security.UserGroupInformation callerUgi) throws IOException
TimelineEntities to the timeline
store. Any errors occurring for individual write request objects will be
reported in the response.context - a TimelineCollectorContextdata - a TimelineEntities object.callerUgi - UserGroupInformation.TimelineWriteResponse object.IOException - if there is any exception encountered while storing or
writing entities to the back end storage.org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse write(TimelineCollectorContext context, org.apache.hadoop.yarn.api.records.timelineservice.TimelineDomain domain) throws IOException
TimelineDomain object to the timeline
store. Any errors occurring for individual write request objects will be
reported in the response.context - a TimelineCollectorContextdomain - a TimelineDomain object.TimelineWriteResponse object.IOException - if there is any exception encountered while storing or
writing entities to the back end storage.org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse aggregate(org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity data,
TimelineAggregationTrack track)
throws IOException
TimelineAggregationTrack
Any errors occurring for individual write request objects will be reported
in the response.data - a TimelineEntity object
a TimelineAggregationTrack enum
value.track - Specifies the track or dimension along which aggregation would
occur. Includes USER, FLOW, QUEUE, etc.TimelineWriteResponse object.IOException - if there is any exception encountered while aggregating
entities to the backend storage.void flush()
throws IOException
IOException - if there is any exception encountered while flushing
entities to the backend storage.org.apache.hadoop.yarn.api.records.timeline.TimelineHealth getHealthStatus()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.