public interface Metrics
Modifier and Type | Method and Description |
---|---|
Object |
getAnnotation(String key)
Obtain the annotation with the specified key.
|
Map<String,Object> |
getAnnotations()
Obtain the annotations for this Metrics.
|
Long |
getCount(String countKey)
Get the count for the corresponding countKey.
|
Map<String,Long> |
getCounts()
Get the map of all counters.
|
long |
getDuration(TimeUnit units)
Get the duration of execution time taken.
|
String |
getId()
Id of this Metrics.
|
String |
getName()
Name of this Metrics.
|
Collection<? extends Metrics> |
getNested()
Get the nested Metrics objects.
|
Metrics |
getNested(String metricsId)
Get a nested Metrics object by Id.
|
long getDuration(TimeUnit units)
Long getCount(String countKey)
countKey
- key for counter to get.Map<String,Long> getCounts()
String getName()
String getId()
Collection<? extends Metrics> getNested()
Metrics getNested(String metricsId)
Map<String,Object> getAnnotations()
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.