Class OutputRecord
- java.lang.Object
-
- com.mapr.org.apache.hadoop.metrics.spi.OutputRecord
-
@Public @Evolving public class OutputRecord extends java.lang.ObjectRepresents a record of metric data to be sent to a metrics system.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.NumbergetMetric(java.lang.String name)Returns the metric object which can be a Float, Integer, Short or Byte.java.util.Set<java.lang.String>getMetricNames()Returns the set of metric names.AbstractMetricsContext.MetricMapgetMetricsCopy()Returns a copy of this record's metrics.java.lang.ObjectgetTag(java.lang.String name)Returns a tag object which is can be a String, Integer, Short or Byte.java.util.Set<java.lang.String>getTagNames()Returns the set of tag namesAbstractMetricsContext.TagMapgetTagsCopy()Returns a copy of this record's tags.
-
-
-
Method Detail
-
getTagNames
public java.util.Set<java.lang.String> getTagNames()
Returns the set of tag names
-
getTag
public java.lang.Object getTag(java.lang.String name)
Returns a tag object which is can be a String, Integer, Short or Byte.- Returns:
- the tag value, or null if there is no such tag
-
getMetricNames
public java.util.Set<java.lang.String> getMetricNames()
Returns the set of metric names.
-
getMetric
public java.lang.Number getMetric(java.lang.String name)
Returns the metric object which can be a Float, Integer, Short or Byte.
-
getTagsCopy
public AbstractMetricsContext.TagMap getTagsCopy()
Returns a copy of this record's tags.
-
getMetricsCopy
public AbstractMetricsContext.MetricMap getMetricsCopy()
Returns a copy of this record's metrics.
-
-