|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetricsService
The Interface MetricsService.
Field Summary | |
---|---|
static String |
ACCEPTED_QUERIES
The Constant ACCEPTED_QUERIES. |
static String |
CANCELLED_QUERIES
Query engine counter names. |
static String |
FAILED_QUERIES
The Constant FAILED_QUERIES. |
static String |
FINISHED_QUERIES
The Constant FINISHED_QUERIES. |
static String |
NAME
The Constant NAME. |
static String |
QUEUED_QUERIES
Query engine gauge names. |
static String |
RUNNING_QUERIES
The Constant RUNNING_QUERIES. |
Method Summary | |
---|---|
void |
decrCounter(Class<?> cls,
String counter)
Decrement a counter with the name costructed using given class and counter name Actual name of the counter will be |
void |
decrCounter(String counter)
Decrement a counter with the given name Actual name of the counter will be |
long |
getCounter(Class<?> cls,
String counter)
Get current value of the counter. |
long |
getCounter(String counter)
Get current value of the counter. |
long |
getFinishedQueries()
|
long |
getQueuedQueries()
|
long |
getRunningQueries()
|
long |
getTotalAcceptedQueries()
|
long |
getTotalCancelledQueries()
|
long |
getTotalFailedQueries()
|
long |
getTotalFinishedQueries()
|
long |
getTotalSuccessfulQueries()
|
void |
incrCounter(Class<?> cls,
String counter)
Increment a counter with the name constructed using given class and counter name Actual name of the counter will be |
void |
incrCounter(String counter)
Increment a counter with the given name Actual name of the counter will be |
void |
publishReport()
Publish report. |
Field Detail |
---|
static final String NAME
static final String CANCELLED_QUERIES
static final String FAILED_QUERIES
static final String ACCEPTED_QUERIES
static final String QUEUED_QUERIES
static final String RUNNING_QUERIES
static final String FINISHED_QUERIES
Method Detail |
---|
void incrCounter(String counter)
MetricRegistry.name(MetricsService.class, counter)
counter
- the countervoid incrCounter(Class<?> cls, String counter)
MetricRegistry.name(cls, counter)
cls
- Class of the counter for namespacing the countercounter
- the countervoid decrCounter(Class<?> cls, String counter)
MetricRegistry.name(cls, counter)
cls
- Class of the counter for namespacing of counterscounter
- the countervoid decrCounter(String counter)
MetricRegistry.name(MetricsService.class, counter)
counter
- the counterlong getCounter(String counter)
counter
- the counter
long getCounter(Class<?> cls, String counter)
cls
- the clscounter
- the counter
long getQueuedQueries()
long getRunningQueries()
long getFinishedQueries()
long getTotalAcceptedQueries()
long getTotalSuccessfulQueries()
long getTotalFinishedQueries()
long getTotalCancelledQueries()
long getTotalFailedQueries()
void publishReport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |