Package alluxio.metrics
Interface MultiValueMetricsAggregator
-
- All Known Implementing Classes:
SingleTagValueAggregator
public interface MultiValueMetricsAggregator
An interface for the aggregator that aggregates metrics of different hosts into multiple cluster-level metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getFilterMetricName()
long
getValue(java.lang.String name)
Gets the metric value of the given fully qualified metric name.java.util.Map<java.lang.String,java.lang.Long>
updateValues(java.util.Set<Metric> map)
Updates the aggregated values from the filtered metrics.
-
-
-
Method Detail
-
getFilterMetricName
java.lang.String getFilterMetricName()
- Returns:
- the metric name to use for filter metrics
-
updateValues
java.util.Map<java.lang.String,java.lang.Long> updateValues(java.util.Set<Metric> map)
Updates the aggregated values from the filtered metrics. The values of map will be the filtered metrics using the metric name defined ingetFilterMetricName()
. The returned values are organized as a map from the metric name to metric value.- Parameters:
map
- a map of metric name to the set of metrics that have the metric name- Returns:
- the aggregated values
-
getValue
long getValue(java.lang.String name)
Gets the metric value of the given fully qualified metric name.- Parameters:
name
- the fully qualified metric name- Returns:
- the metric value, 0 if the metric name does not exist
-
-