@InterfaceAudience.Private public class MetricsRESTSourceImpl extends BaseSourceImpl implements MetricsRESTSource
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
fDel |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
fGet |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
fPut |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
fScan |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
request |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
sucDel |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
sucGet |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
sucPut |
private org.apache.hadoop.metrics2.lib.MutableCounterLong |
sucScan |
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistryCONTEXT, FAILED_DELETE_KEY, FAILED_GET_KEY, FAILED_PUT_KEY, FAILED_SCAN_KEY, JMX_CONTEXT, METRICS_DESCRIPTION, METRICS_NAME, REQUEST_KEY, SUCCESSFUL_DELETE_KEY, SUCCESSFUL_GET_KEY, SUCCESSFUL_PUT_KEY, SUCCESSFUL_SCAN_KEYHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsRESTSourceImpl() |
MetricsRESTSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
incrementFailedDeleteRequests(int inc)
Increment the number of failed Delete requests.
|
void |
incrementFailedGetRequests(int inc)
Increment the number of failed Get 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 |
incrementSucessfulDeleteRequests(int inc)
Increment the number of successful Delete requests.
|
void |
incrementSucessfulGetRequests(int inc)
Increment the number of successful Get requests.
|
void |
incrementSucessfulPutRequests(int inc)
Increment the number of successful Put requests.
|
void |
incrementSucessfulScanRequests(int inc)
Increment the number of successful scan requests.
|
void |
init()
Clear out the metrics and re-prepare the source.
|
decGauge, getMetrics, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantileprivate org.apache.hadoop.metrics2.lib.MutableCounterLong request
private org.apache.hadoop.metrics2.lib.MutableCounterLong sucGet
private org.apache.hadoop.metrics2.lib.MutableCounterLong sucPut
private org.apache.hadoop.metrics2.lib.MutableCounterLong sucDel
private org.apache.hadoop.metrics2.lib.MutableCounterLong sucScan
private org.apache.hadoop.metrics2.lib.MutableCounterLong fGet
private org.apache.hadoop.metrics2.lib.MutableCounterLong fPut
private org.apache.hadoop.metrics2.lib.MutableCounterLong fDel
private org.apache.hadoop.metrics2.lib.MutableCounterLong fScan
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 - the incCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.