Package org.apache.heron.api.metric
Class LatencyStatAndMetric
- java.lang.Object
-
- org.apache.heron.api.metric.LatencyStatAndMetric
-
-
Constructor Summary
Constructors Constructor Description LatencyStatAndMetric(int numBuckets)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Map<String,Double>
getTimeLatAvg()
Get time latency averageDouble
getValueAndReset()
void
record(long latency)
Record a specific latency
-
-
-
Method Detail
-
record
public void record(long latency)
Record a specific latency- Parameters:
latency
- what we are recording
-
getValueAndReset
public Double getValueAndReset()
- Specified by:
getValueAndReset
in interfaceIMetric<Double>
-
getTimeLatAvg
public Map<String,Double> getTimeLatAvg()
Get time latency average- Returns:
- a map of time window to average latency. Keys are "600" for last 10 mins "10800" for the last 3 hours "86400" for the last day ":all-time" for all time
-
close
public void close()
-
-