public interface MetricStore
MetricStore
back all Metric
instances generated in ActFramework.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear metric data
|
java.lang.Long |
count(java.lang.String name)
Returns the counts of counter specified
|
java.util.List<MetricInfo> |
counters()
Returns all counter names
|
void |
countOnce(java.lang.String name)
Increment one on counter specified
|
java.lang.Long |
ns(java.lang.String name)
Returns the aggregated time in nanoseconds of timer specified
|
void |
onTimerStart(java.lang.String name) |
void |
onTimerStop(Timer timer) |
java.util.List<MetricInfo> |
timers()
Returns all timer names
|
void countOnce(java.lang.String name)
Increment one on counter specified
name
- A string specify the countervoid onTimerStart(java.lang.String name)
void onTimerStop(Timer timer)
java.lang.Long count(java.lang.String name)
Returns the counts of counter specified
name
- A string specifies the counternull
if the counter cannot be foundjava.lang.Long ns(java.lang.String name)
Returns the aggregated time in nanoseconds of timer specified
name
- A string specifies the timernull
if counter cannot be foundjava.util.List<MetricInfo> counters()
Returns all counter names
java.util.List<MetricInfo> timers()
Returns all timer names
void clear()
Clear metric data
Copyright © 2014–2017 ActFramework. All rights reserved.