@InterfaceAudience.Private public class MetricsRESTSourceImpl extends BaseSourceImpl implements MetricsRESTSource
| Modifier and Type | Field and Description |
|---|---|
private MutableFastCounter |
fAppend |
private MutableFastCounter |
fDel |
private MutableFastCounter |
fGet |
private MutableFastCounter |
fIncrement |
private MutableFastCounter |
fPut |
private MutableFastCounter |
fScan |
private MutableFastCounter |
infoPauseThresholdExceeded |
private MetricHistogram |
pausesWithGc |
private MetricHistogram |
pausesWithoutGc |
private MutableFastCounter |
request |
private MutableFastCounter |
sucAppend |
private MutableFastCounter |
sucDel |
private MutableFastCounter |
sucGet |
private MutableFastCounter |
sucIncrement |
private MutableFastCounter |
sucPut |
private MutableFastCounter |
sucScan |
private MutableFastCounter |
warnPauseThresholdExceeded |
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryCONTEXT, 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_KEYHBASE_METRICS_SYSTEM_NAMEINFO_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, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogramprivate MutableFastCounter request
private MutableFastCounter sucGet
private MutableFastCounter sucPut
private MutableFastCounter sucDel
private MutableFastCounter sucScan
private MutableFastCounter sucAppend
private MutableFastCounter sucIncrement
private MutableFastCounter fGet
private MutableFastCounter fPut
private MutableFastCounter fDel
private MutableFastCounter fScan
private MutableFastCounter fAppend
private MutableFastCounter fIncrement
private final MutableFastCounter infoPauseThresholdExceeded
private final MutableFastCounter warnPauseThresholdExceeded
private final MetricHistogram pausesWithGc
private final MetricHistogram pausesWithoutGc
public MetricsRESTSourceImpl()
public MetricsRESTSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext)
public void init()
BaseSourceinit in interface BaseSourceinit in class BaseSourceImplpublic void incrementRequests(int inc)
MetricsRESTSourceincrementRequests in interface MetricsRESTSourceinc - Ammount to increment bypublic void incrementSucessfulGetRequests(int inc)
MetricsRESTSourceincrementSucessfulGetRequests in interface MetricsRESTSourceinc - Number of successful get requests.public void incrementSucessfulPutRequests(int inc)
MetricsRESTSourceincrementSucessfulPutRequests in interface MetricsRESTSourceinc - Number of successful put requests.public void incrementSucessfulDeleteRequests(int inc)
MetricsRESTSourceincrementSucessfulDeleteRequests in interface MetricsRESTSourcepublic void incrementFailedGetRequests(int inc)
MetricsRESTSourceincrementFailedGetRequests in interface MetricsRESTSourceinc - The number of failed Get Requests.public void incrementFailedPutRequests(int inc)
MetricsRESTSourceincrementFailedPutRequests in interface MetricsRESTSourceinc - Number of failed Put requests.public void incrementFailedDeleteRequests(int inc)
MetricsRESTSourceincrementFailedDeleteRequests in interface MetricsRESTSourceinc - The number of failed delete requests.public void incrementSucessfulScanRequests(int inc)
MetricsRESTSourceincrementSucessfulScanRequests in interface MetricsRESTSourceinc - Number of successful scan requests.public void incrementFailedScanRequests(int inc)
MetricsRESTSourceincrementFailedScanRequests in interface MetricsRESTSourceinc - Number of failed scan requests.public void incrementSucessfulAppendRequests(int inc)
MetricsRESTSourceincrementSucessfulAppendRequests in interface MetricsRESTSourceinc - Number of successful append requests.public void incrementFailedAppendRequests(int inc)
MetricsRESTSourceincrementFailedAppendRequests in interface MetricsRESTSourceinc - Number of failed append requests.public void incrementSucessfulIncrementRequests(int inc)
MetricsRESTSourceincrementSucessfulIncrementRequests in interface MetricsRESTSourceinc - Number of successful increment requests.public void incrementFailedIncrementRequests(int inc)
MetricsRESTSourceincrementFailedIncrementRequests in interface MetricsRESTSourceinc - Number of failed increment requests.public void incInfoThresholdExceeded(int count)
JvmPauseMonitorSourceincInfoThresholdExceeded in interface JvmPauseMonitorSourcecount - the countpublic void incWarnThresholdExceeded(int count)
JvmPauseMonitorSourceincWarnThresholdExceeded in interface JvmPauseMonitorSourcecount - the countpublic void updatePauseTimeWithGc(long t)
JvmPauseMonitorSourceupdatePauseTimeWithGc in interface JvmPauseMonitorSourcet - time it tookpublic void updatePauseTimeWithoutGc(long t)
JvmPauseMonitorSourceupdatePauseTimeWithoutGc in interface JvmPauseMonitorSourcet - time it tookCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.