public interface SourceMetrics
SourceMetrics
used by the FederationStrategy
to update metrics on
individual Source
s as queries and exceptions occur when the Source
is accessed.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTIONS_SCOPE
Name of the JMX MBean scope for source-level metrics tracking exceptions while querying a
specific
Source |
static String |
MBEAN_PACKAGE_NAME
Package name for the JMX MBean where metrics for
Source s are stored. |
static String |
QUERIES_SCOPE
Name of the JMX MBean scope for source-level metrics tracking query count while querying a
specific
Source |
static String |
QUERIES_TOTAL_RESULTS_SCOPE
Name of the JMX MBean scope for source-level metrics tracking total results returned while
querying a specific
Source |
Modifier and Type | Method and Description |
---|---|
void |
updateMetric(String sourceId,
String metricName,
int incrementAmount)
Update a source-level metric.
|
static final String MBEAN_PACKAGE_NAME
Source
s are stored.static final String EXCEPTIONS_SCOPE
Source
static final String QUERIES_SCOPE
Source
static final String QUERIES_TOTAL_RESULTS_SCOPE
Source
This work is licensed under a Creative Commons Attribution 4.0 International License.