public class LocalRegistry extends Object implements Registry
REGISTRY_MAP| Constructor and Description |
|---|
LocalRegistry(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
long value)
Add value to the metric.
|
void |
clear()
Clear all metrics.
|
Map<String,Long> |
getAllCounts(boolean prefixWithRegistryName)
Get all Counter type metrics.
|
void |
increment(String name)
Increment the metric.
|
void |
set(String name,
long value)
Set the value to the metric.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllCounts, getAllMetrics, getRegistry, getRegistrypublic LocalRegistry(String name)
public void clear()
Registrypublic void increment(String name)
Registrypublic void add(String name, long value)
Registrypublic void set(String name, long value)
Registrypublic Map<String,Long> getAllCounts(boolean prefixWithRegistryName)
getAllCounts in interface RegistryprefixWithRegistryName - If true, the names of all metrics are prefixed with name of this registry.Copyright © 2022 The Apache Software Foundation. All rights reserved.