|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.timgroup.statsd.NoOpStatsDClient
public final class NoOpStatsDClient
A No-Op StatsDClient, which can be substituted in when metrics are not required.
| Constructor Summary | |
|---|---|
NoOpStatsDClient()
|
|
| Method Summary | |
|---|---|
void |
count(String aspect,
long delta,
String... tags)
Adjusts the specified counter by a given delta. |
void |
decrement(String aspect,
String... tags)
Convenience method equivalent to StatsDClient.decrementCounter(String, String[]). |
void |
decrementCounter(String aspect,
String... tags)
Decrements the specified counter by one. |
void |
gauge(String aspect,
double value,
String... tags)
Convenience method equivalent to StatsDClient.recordGaugeValue(String, double, String[]). |
void |
gauge(String aspect,
long value,
String... tags)
Convenience method equivalent to StatsDClient.recordGaugeValue(String, long, String[]). |
void |
histogram(String aspect,
double value,
String... tags)
Convenience method equivalent to StatsDClient.recordHistogramValue(String, double, String[]). |
void |
histogram(String aspect,
long value,
String... tags)
Convenience method equivalent to StatsDClient.recordHistogramValue(String, long, String[]). |
void |
increment(String aspect,
String... tags)
Convenience method equivalent to StatsDClient.incrementCounter(String, String[]). |
void |
incrementCounter(String aspect,
String... tags)
Increments the specified counter by one. |
void |
recordExecutionTime(String aspect,
long timeInMs,
String... tags)
Records an execution time in milliseconds for the specified named operation. |
void |
recordGaugeValue(String aspect,
double value,
String... tags)
Records the latest fixed value for the specified named gauge. |
void |
recordGaugeValue(String aspect,
long value,
String... tags)
Records the latest fixed value for the specified named gauge. |
void |
recordHistogramValue(String aspect,
double value,
String... tags)
Records a value for the specified named histogram. |
void |
recordHistogramValue(String aspect,
long value,
String... tags)
Records a value for the specified named histogram. |
void |
recordServiceCheckRun(ServiceCheck sc)
Records a run status for the specified named service check. |
void |
serviceCheck(ServiceCheck sc)
Convenience method equivalent to StatsDClient.recordServiceCheckRun(ServiceCheck sc). |
void |
stop()
Cleanly shut down this StatsD client. |
void |
time(String aspect,
long value,
String... tags)
Convenience method equivalent to StatsDClient.recordExecutionTime(String, long, String[]). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoOpStatsDClient()
| Method Detail |
|---|
public void stop()
StatsDClient
stop in interface StatsDClient
public void count(String aspect,
long delta,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
count in interface StatsDClientaspect - the name of the counter to adjustdelta - the amount to adjust the counter bytags - array of tags to be added to the data
public void incrementCounter(String aspect,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
incrementCounter in interface StatsDClientaspect - the name of the counter to incrementtags - array of tags to be added to the data
public void increment(String aspect,
String... tags)
StatsDClientStatsDClient.incrementCounter(String, String[]).
increment in interface StatsDClient
public void decrementCounter(String aspect,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
decrementCounter in interface StatsDClientaspect - the name of the counter to decrementtags - array of tags to be added to the data
public void decrement(String aspect,
String... tags)
StatsDClientStatsDClient.decrementCounter(String, String[]).
decrement in interface StatsDClient
public void recordGaugeValue(String aspect,
double value,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
recordGaugeValue in interface StatsDClientaspect - the name of the gaugevalue - the new reading of the gauge
public void gauge(String aspect,
double value,
String... tags)
StatsDClientStatsDClient.recordGaugeValue(String, double, String[]).
gauge in interface StatsDClient
public void recordGaugeValue(String aspect,
long value,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
recordGaugeValue in interface StatsDClientaspect - the name of the gaugevalue - the new reading of the gauge
public void gauge(String aspect,
long value,
String... tags)
StatsDClientStatsDClient.recordGaugeValue(String, long, String[]).
gauge in interface StatsDClient
public void recordExecutionTime(String aspect,
long timeInMs,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
recordExecutionTime in interface StatsDClientaspect - the name of the timed operationtimeInMs - the time in millisecondstags - array of tags to be added to the data
public void time(String aspect,
long value,
String... tags)
StatsDClientStatsDClient.recordExecutionTime(String, long, String[]).
time in interface StatsDClient
public void recordHistogramValue(String aspect,
double value,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
recordHistogramValue in interface StatsDClientaspect - the name of the histogramvalue - the value to be incorporated in the histogramtags - array of tags to be added to the data
public void histogram(String aspect,
double value,
String... tags)
StatsDClientStatsDClient.recordHistogramValue(String, double, String[]).
histogram in interface StatsDClient
public void recordHistogramValue(String aspect,
long value,
String... tags)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
recordHistogramValue in interface StatsDClientaspect - the name of the histogramvalue - the value to be incorporated in the histogramtags - array of tags to be added to the data
public void histogram(String aspect,
long value,
String... tags)
StatsDClientStatsDClient.recordHistogramValue(String, long, String[]).
histogram in interface StatsDClientpublic void recordServiceCheckRun(ServiceCheck sc)
StatsDClientThis method is a DataDog extension, and may not work with other servers.
This method is non-blocking and is guaranteed not to throw an exception.
recordServiceCheckRun in interface StatsDClientsc - the service check objectpublic void serviceCheck(ServiceCheck sc)
StatsDClientStatsDClient.recordServiceCheckRun(ServiceCheck sc).
serviceCheck in interface StatsDClient
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||