public class MetricRegistry extends Object
| Constructor and Description |
|---|
MetricRegistry(String name)
Creates a new
MetricRegistry. |
| Modifier and Type | Method and Description |
|---|---|
Map<com.gigaspaces.metrics.MetricTags,com.gigaspaces.metrics.MetricGroup> |
getGroups() |
String |
getName() |
boolean |
isEmpty() |
void |
register(String name,
com.gigaspaces.metrics.MetricTags tags,
Metric metric)
Given a
Gauge, registers it under the given name. |
void |
remove(String metricName,
com.gigaspaces.metrics.MetricTags tags) |
void |
removeByPrefix(String prefix,
com.gigaspaces.metrics.MetricTags tags) |
MetricRegistrySnapshot |
snapshot(long timestamp) |
public MetricRegistry(String name)
MetricRegistry.public String getName()
public Map<com.gigaspaces.metrics.MetricTags,com.gigaspaces.metrics.MetricGroup> getGroups()
public void register(String name, com.gigaspaces.metrics.MetricTags tags, Metric metric)
Gauge, registers it under the given name.name - the name of the metricmetric - the metricIllegalArgumentException - if the name is already registeredpublic void remove(String metricName, com.gigaspaces.metrics.MetricTags tags)
public void removeByPrefix(String prefix, com.gigaspaces.metrics.MetricTags tags)
public boolean isEmpty()
public MetricRegistrySnapshot snapshot(long timestamp)
Copyright © GigaSpaces.