public interface MetricsService extends LensService
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPTED_QUERIES
The Constant ACCEPTED_QUERIES.
|
static String |
ACTIVE_SESSIONS |
static String |
CANCELLED_QUERIES
Query engine counter names.
|
static String |
CLOSED_SESSIONS |
static String |
EXPIRED_SESSIONS |
static String |
FAILED_QUERIES
The Constant FAILED_QUERIES.
|
static String |
FINISHED_QUERIES
The Constant FINISHED_QUERIES.
|
static String |
LAUNCHING_QUERIES |
static String |
NAME
The Constant NAME.
|
static String |
OPENED_SESSIONS |
static String |
QUEUED_QUERIES
Query engine gauge names.
|
static String |
RUNNING_QUERIES
The Constant RUNNING_QUERIES.
|
static String |
WAITING_QUERIES
The Constant WAITING_QUERIES.
|
Modifier and Type | Method and Description |
---|---|
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
|
int |
getActiveSessions()
Specifies the count of all opened sessions which are not closed after restarted and the restored sessions
|
long |
getCounter(Class<?> cls,
String counter)
Get current value of the counter.
|
long |
getCounter(String counter)
Get current value of the counter.
|
long |
getFinishedQueries() |
MethodMetricsContext |
getMethodMetricsContext(org.glassfish.jersey.server.model.ResourceMethod method,
org.glassfish.jersey.server.ContainerRequest containerRequest)
API method for getting metrics measuring context for given resource method and container request
|
long |
getQueuedQueries() |
long |
getRunningQueries() |
long |
getTotalAcceptedQueries() |
long |
getTotalCancelledQueries() |
long |
getTotalClosedSessions()
Specifies the number of sessions closed
|
long |
getTotalDatabaseResourceLoadErrors() |
long |
getTotalExpiredSessions()
Specifies the number of sessions were idle for more than session timeout
|
long |
getTotalFailedQueries() |
long |
getTotalFinishedQueries() |
long |
getTotalOpenedSessions()
Specifies the count of opened sessions
|
long |
getTotalServerStatePersistenceErrors() |
long |
getTotalSuccessfulQueries() |
long |
getWaitingQueries() |
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.
|
getHealthStatus
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 WAITING_QUERIES
static final String LAUNCHING_QUERIES
static final String FINISHED_QUERIES
static final String OPENED_SESSIONS
static final String CLOSED_SESSIONS
static final String EXPIRED_SESSIONS
static final String ACTIVE_SESSIONS
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 counterlong getCounter(Class<?> cls, String counter)
cls
- the clscounter
- the counterlong getTotalDatabaseResourceLoadErrors()
long getQueuedQueries()
long getRunningQueries()
long getWaitingQueries()
long getFinishedQueries()
long getTotalAcceptedQueries()
long getTotalSuccessfulQueries()
long getTotalFinishedQueries()
long getTotalCancelledQueries()
long getTotalFailedQueries()
long getTotalServerStatePersistenceErrors()
void publishReport()
MethodMetricsContext getMethodMetricsContext(org.glassfish.jersey.server.model.ResourceMethod method, org.glassfish.jersey.server.ContainerRequest containerRequest)
method
- the resource methodcontainerRequest
- container requestContainerRequest
,
ResourceMethod
,
MethodMetricsContext
long getTotalOpenedSessions()
long getTotalClosedSessions()
long getTotalExpiredSessions()
int getActiveSessions()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.