public class Stats
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Stats.TimerContext |
Constructor and Description |
---|
Stats(java.lang.String productName,
java.lang.String serviceName) |
Modifier and Type | Method and Description |
---|---|
static Stats.TimerContext |
emptyTimerContext() |
long |
getTotalFailure() |
long |
getTotalSuccess() |
void |
incrementCounter(java.lang.String name,
boolean isSucceeded) |
void |
incrementTotalFailure() |
void |
incrementTotalSuccess() |
Stats.TimerContext |
measureTime(java.lang.String name) |
void |
startJmxReporter() |
void |
startPrometheusExporter(ServerConfig config) |
public void incrementCounter(java.lang.String name, boolean isSucceeded)
public void incrementTotalSuccess()
public long getTotalSuccess()
public void incrementTotalFailure()
public long getTotalFailure()
public Stats.TimerContext measureTime(java.lang.String name)
public void startJmxReporter()
public void startPrometheusExporter(ServerConfig config)
public static Stats.TimerContext emptyTimerContext()