public class MetricSampler extends Object implements Closeable
Constructor and Description |
---|
MetricSampler(MetricSamplerConfig config,
Collection<MetricReporter> reporters) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops the reporter and shuts down its thread of execution.
|
MetricRegistry |
getRegistry() |
boolean |
isActive() |
void |
register(String name,
MetricTags tags,
Metric metric) |
void |
remove(String metricName,
MetricTags tags) |
void |
removeByPrefix(String prefix,
MetricTags tags) |
String |
toString() |
public MetricSampler(MetricSamplerConfig config, Collection<MetricReporter> reporters)
public boolean isActive()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void register(String name, MetricTags tags, Metric metric)
public void remove(String metricName, MetricTags tags)
public void removeByPrefix(String prefix, MetricTags tags)
public MetricRegistry getRegistry()
Copyright © GigaSpaces.