Returns a counter named 'name'. If the counter does not exist, it is registered in the metrics registry.
(String name)
| 57 | * the metrics registry. |
| 58 | */ |
| 59 | public Counter getCounter(String name) { |
| 60 | Counter counter = registry_.getCounters().get(name); |
| 61 | if (counter == null) counter = registry_.counter(name); |
| 62 | return counter; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Returns a meter named 'name'. If the meter does not exist, it is registered in the |