Class TimelineMetricSubDoc
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.documentstore.collection.document.entity.TimelineMetricSubDoc
This class represents a Sub Document for
TimelineMetric that will be
used when creating new TimelineEntityDocument.-
Constructor Summary
ConstructorsConstructorDescriptionTimelineMetricSubDoc(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric timelineMetric) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricgetId()org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperationGet the real time aggregation operation of this metric.longGet single data timestamp of the metric.Get single data value of the metric.org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.TypegetType()inthashCode()booleanisValid()voidvoidsetRealtimeAggregationOp(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation op) Set the real time aggregation operation of this metric.voidsetSingleDataTimestamp(long singleDataTimestamp) voidsetSingleDataValue(Number singleDataValue) voidsetType(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type metricType) void
-
Constructor Details
-
TimelineMetricSubDoc
public TimelineMetricSubDoc() -
TimelineMetricSubDoc
public TimelineMetricSubDoc(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric timelineMetric)
-
-
Method Details
-
getRealtimeAggregationOp
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation getRealtimeAggregationOp()Get the real time aggregation operation of this metric.- Returns:
- Real time aggregation operation
-
setRealtimeAggregationOp
public void setRealtimeAggregationOp(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation op) Set the real time aggregation operation of this metric.- Parameters:
op- A timeline metric operation that the metric should perform on real time aggregations
-
getId
-
setId
-
setSingleDataTimestamp
public void setSingleDataTimestamp(long singleDataTimestamp) -
getSingleDataTimestamp
public long getSingleDataTimestamp()Get single data timestamp of the metric.- Returns:
- the single data timestamp
-
getSingleDataValue
Get single data value of the metric.- Returns:
- the single data value
-
setSingleDataValue
-
getValues
-
setValues
-
getValuesJAXB
-
getType
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type getType() -
setType
public void setType(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type metricType) -
isValid
public boolean isValid() -
hashCode
public int hashCode() -
equals
-
fetchTimelineMetric
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric fetchTimelineMetric()
-