public abstract class Reporter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected LoggingErrorHandler |
handler |
static String |
VALUE |
| Constructor and Description |
|---|
Reporter()
Reporter constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCountersAggregator(String instanceName)
Clears the counter aggregator for the provided instance name.
|
void |
clearRatesAggregator(String instanceName)
Clears the rate aggregator for the provided instance name.
|
abstract void |
displayInstanceName(Instance instance) |
abstract void |
displayMatchingAttributeName(JmxAttribute jmxAttribute,
int rank,
int limit) |
abstract void |
displayMetricReached() |
abstract void |
displayNonMatchingAttributeName(JmxAttribute jmxAttribute) |
protected abstract void |
doSendServiceCheck(String checkName,
String status,
String message,
String[] tags) |
LoggingErrorHandler |
getHandler() |
int |
getServiceCheckCount(String checkName) |
protected Map<String,Integer> |
getServiceCheckCountMap() |
void |
incrementServiceCheckCount(String checkName)
Increments the service check count - for book-keeping purposes.
|
void |
resetServiceCheckCount(String checkName) |
protected abstract void |
sendMetricPoint(String metricType,
String metricName,
double value,
String[] tags) |
void |
sendMetrics(List<Metric> metrics,
String instanceName,
boolean canonicalRate)
Submits the metrics in the implementing reporter.
|
void |
sendServiceCheck(String checkName,
String serviceCheckName,
String status,
String message,
String[] tags)
Submits service check.
|
protected com.timgroup.statsd.ServiceCheck.Status |
statusToServiceCheckStatus(String status) |
protected int |
statusToServiceCheckStatusValue(String status) |
public static final String VALUE
protected LoggingErrorHandler handler
public void clearRatesAggregator(String instanceName)
public void clearCountersAggregator(String instanceName)
public void sendMetrics(List<Metric> metrics, String instanceName, boolean canonicalRate)
public void sendServiceCheck(String checkName, String serviceCheckName, String status, String message, String[] tags)
public void incrementServiceCheckCount(String checkName)
public int getServiceCheckCount(String checkName)
public void resetServiceCheckCount(String checkName)
public LoggingErrorHandler getHandler()
protected com.timgroup.statsd.ServiceCheck.Status statusToServiceCheckStatus(String status)
protected int statusToServiceCheckStatusValue(String status)
protected abstract void sendMetricPoint(String metricType, String metricName, double value, String[] tags)
protected abstract void doSendServiceCheck(String checkName, String status, String message, String[] tags)
public abstract void displayMetricReached()
public abstract void displayNonMatchingAttributeName(JmxAttribute jmxAttribute)
public abstract void displayInstanceName(Instance instance)
public abstract void displayMatchingAttributeName(JmxAttribute jmxAttribute, int rank, int limit)
Copyright © 2021. All rights reserved.