public interface SourceMetrics
SourceMetrics used by the FederationStrategy to update metrics on
individual Sources 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
Sources 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
Sources are stored.static final String EXCEPTIONS_SCOPE
Sourcestatic final String QUERIES_SCOPE
Sourcestatic final String QUERIES_TOTAL_RESULTS_SCOPE
SourceThis work is licensed under a Creative Commons Attribution 4.0 International License.