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.
|
String |
getName() |
MetricRegistry |
getRegistry() |
Map<String,Object> |
getSnapshotsByPrefix(String prefix) |
Map<String,Object> |
getSnapshotsByPrefixAndMatchingTags(String prefix,
MetricTags tags) |
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 Map<String,Object> getSnapshotsByPrefixAndMatchingTags(String prefix, MetricTags tags)
public MetricRegistry getRegistry()
public String getName()
Copyright © GigaSpaces.