@InterfaceAudience.Private public class MetricsRESTSourceImpl extends BaseSourceImpl implements MetricsRESTSource
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
CONTEXT, FAILED_APPEND_KEY, FAILED_DELETE_KEY, FAILED_GET_KEY, FAILED_INCREMENT_KEY, FAILED_PUT_KEY, FAILED_SCAN_KEY, JMX_CONTEXT, METRICS_DESCRIPTION, METRICS_NAME, REQUEST_KEY, SUCCESSFUL_APPEND_KEY, SUCCESSFUL_DELETE_KEY, SUCCESSFUL_GET_KEY, SUCCESSFUL_INCREMENT_KEY, SUCCESSFUL_PUT_KEY, SUCCESSFUL_SCAN_KEY
HBASE_METRICS_SYSTEM_NAME
INFO_THRESHOLD_COUNT_DESC, INFO_THRESHOLD_COUNT_KEY, PAUSE_TIME_WITH_GC_DESC, PAUSE_TIME_WITH_GC_KEY, PAUSE_TIME_WITHOUT_GC_DESC, PAUSE_TIME_WITHOUT_GC_KEY, WARN_THRESHOLD_COUNT_DESC, WARN_THRESHOLD_COUNT_KEY
Constructor and Description |
---|
MetricsRESTSourceImpl() |
MetricsRESTSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
Modifier and Type | Method and Description |
---|---|
void |
incInfoThresholdExceeded(int count)
Increment the INFO level threshold exceeded count
|
void |
incrementFailedAppendRequests(int inc)
Increment the number failed append requests.
|
void |
incrementFailedDeleteRequests(int inc)
Increment the number of failed Delete requests.
|
void |
incrementFailedGetRequests(int inc)
Increment the number of failed Get requests.
|
void |
incrementFailedIncrementRequests(int inc)
Increment the number failed increment requests.
|
void |
incrementFailedPutRequests(int inc)
Increment the number of failed Put Requests.
|
void |
incrementFailedScanRequests(int inc)
Increment the number failed scan requests.
|
void |
incrementRequests(int inc)
Increment the number of requests
|
void |
incrementSucessfulAppendRequests(int inc)
Increment the number of successful append requests.
|
void |
incrementSucessfulDeleteRequests(int inc)
Increment the number of successful Delete requests.
|
void |
incrementSucessfulGetRequests(int inc)
Increment the number of successful Get requests.
|
void |
incrementSucessfulIncrementRequests(int inc)
Increment the number of successful increment requests.
|
void |
incrementSucessfulPutRequests(int inc)
Increment the number of successful Put requests.
|
void |
incrementSucessfulScanRequests(int inc)
Increment the number of successful scan requests.
|
void |
incWarnThresholdExceeded(int count)
Increment the WARN level threshold exceeded count
|
void |
init()
Clear out the metrics and re-prepare the source.
|
void |
updatePauseTimeWithGc(long t)
Update the pause time histogram where GC activity was detected.
|
void |
updatePauseTimeWithoutGc(long t)
Update the pause time histogram where GC activity was not detected.
|
decGauge, getMetricRegistryInfo, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram
public void init()
BaseSource
init
in interface BaseSource
init
in class BaseSourceImpl
public void incrementRequests(int inc)
MetricsRESTSource
incrementRequests
in interface MetricsRESTSource
inc
- Ammount to increment bypublic void incrementSucessfulGetRequests(int inc)
MetricsRESTSource
incrementSucessfulGetRequests
in interface MetricsRESTSource
inc
- Number of successful get requests.public void incrementSucessfulPutRequests(int inc)
MetricsRESTSource
incrementSucessfulPutRequests
in interface MetricsRESTSource
inc
- Number of successful put requests.public void incrementSucessfulDeleteRequests(int inc)
MetricsRESTSource
incrementSucessfulDeleteRequests
in interface MetricsRESTSource
public void incrementFailedGetRequests(int inc)
MetricsRESTSource
incrementFailedGetRequests
in interface MetricsRESTSource
inc
- The number of failed Get Requests.public void incrementFailedPutRequests(int inc)
MetricsRESTSource
incrementFailedPutRequests
in interface MetricsRESTSource
inc
- Number of failed Put requests.public void incrementFailedDeleteRequests(int inc)
MetricsRESTSource
incrementFailedDeleteRequests
in interface MetricsRESTSource
inc
- The number of failed delete requests.public void incrementSucessfulScanRequests(int inc)
MetricsRESTSource
incrementSucessfulScanRequests
in interface MetricsRESTSource
inc
- Number of successful scan requests.public void incrementFailedScanRequests(int inc)
MetricsRESTSource
incrementFailedScanRequests
in interface MetricsRESTSource
inc
- Number of failed scan requests.public void incrementSucessfulAppendRequests(int inc)
MetricsRESTSource
incrementSucessfulAppendRequests
in interface MetricsRESTSource
inc
- Number of successful append requests.public void incrementFailedAppendRequests(int inc)
MetricsRESTSource
incrementFailedAppendRequests
in interface MetricsRESTSource
inc
- Number of failed append requests.public void incrementSucessfulIncrementRequests(int inc)
MetricsRESTSource
incrementSucessfulIncrementRequests
in interface MetricsRESTSource
inc
- Number of successful increment requests.public void incrementFailedIncrementRequests(int inc)
MetricsRESTSource
incrementFailedIncrementRequests
in interface MetricsRESTSource
inc
- Number of failed increment requests.public void incInfoThresholdExceeded(int count)
JvmPauseMonitorSource
incInfoThresholdExceeded
in interface JvmPauseMonitorSource
count
- the countpublic void incWarnThresholdExceeded(int count)
JvmPauseMonitorSource
incWarnThresholdExceeded
in interface JvmPauseMonitorSource
count
- the countpublic void updatePauseTimeWithGc(long t)
JvmPauseMonitorSource
updatePauseTimeWithGc
in interface JvmPauseMonitorSource
t
- time it tookpublic void updatePauseTimeWithoutGc(long t)
JvmPauseMonitorSource
updatePauseTimeWithoutGc
in interface JvmPauseMonitorSource
t
- time it tookCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.