public class InternalMetricRegistrator extends MetricRegistrator
Constructor and Description |
---|
InternalMetricRegistrator(MetricManager metricManager,
String prefix,
MetricTags tags) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Unregisters all the metrics registered via this BeanMetricManager instance.
|
MetricRegistrator |
extend(String prefix) |
MetricRegistrator |
extend(String prefix,
Map<String,String> newTags,
Map<String,DynamicMetricTag> newDynamicTags) |
void |
register(String name,
Metric metric)
Registers the specified metric with the specified metric name.
|
String |
toPath(String... names) |
void |
unregister(String name)
Unregisters the specified metric.
|
void |
unregisterByPrefix(String prefix) |
public InternalMetricRegistrator(MetricManager metricManager, String prefix, MetricTags tags)
public MetricRegistrator extend(String prefix)
extend
in class MetricRegistrator
public MetricRegistrator extend(String prefix, Map<String,String> newTags, Map<String,DynamicMetricTag> newDynamicTags)
public String toPath(String... names)
toPath
in class MetricRegistrator
public void register(String name, Metric metric)
BeanMetricManager
name
- Name of metric to registermetric
- Metric to registerpublic void unregister(String name)
BeanMetricManager
name
- Name of metric to unregisterpublic void unregisterByPrefix(String prefix)
unregisterByPrefix
in class MetricRegistrator
public void clear()
BeanMetricManager
Copyright © GigaSpaces.