@InterfaceAudience.Private public class MetricsRESTSourceImpl extends BaseSourceImpl implements MetricsRESTSource
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
CONTEXT, 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_KEY
HBASE_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, updateQuantile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, removeMetric, setGauge, updateHistogram, updateQuantile
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
- the incCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.