@InterfaceAudience.Private public class MetricsZooKeeperSourceImpl extends BaseSourceImpl implements MetricsZooKeeperSource
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registryEXCEPTION_AUTHFAILED, EXCEPTION_AUTHFAILED_DESC, EXCEPTION_CONNECTIONLOSS, EXCEPTION_CONNECTIONLOSS_DESC, EXCEPTION_DATAINCONSISTENCY, EXCEPTION_DATAINCONSISTENCY_DESC, EXCEPTION_INVALIDACL, EXCEPTION_INVALIDACL_DESC, EXCEPTION_NOAUTH, EXCEPTION_NOAUTH_DESC, EXCEPTION_OPERATIONTIMEOUT, EXCEPTION_OPERATIONTIMEOUT_DESC, EXCEPTION_RUNTIMEINCONSISTENCY, EXCEPTION_RUNTIMEINCONSISTENCY_DESC, EXCEPTION_SESSIONEXPIRED, EXCEPTION_SESSIONEXPIRED_DESC, EXCEPTION_SYSTEMERROR, EXCEPTION_SYSTEMERROR_DESC, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, READ_OPERATION_LATENCY_DESC, READ_OPERATION_LATENCY_NAME, SYNC_OPERATION_LATENCY_DESC, SYNC_OPERATION_LATENCY_NAME, TOTAL_FAILED_ZK_CALLS, TOTAL_FAILED_ZK_CALLS_DESC, WRITE_OPERATION_LATENCY_DESC, WRITE_OPERATION_LATENCY_NAMEHBASE_METRICS_SYSTEM_NAME| Constructor and Description |
|---|
MetricsZooKeeperSourceImpl() |
MetricsZooKeeperSourceImpl(String metricsName,
String metricsDescription,
String metricsContext,
String metricsJmxContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all) |
void |
incrementAuthFailedCount()
Increment the count of failed ops due to AUTHFAILED Exception.
|
void |
incrementConnectionLossCount()
Increment the count of failed ops due to a CONNECTIONLOSS Exception.
|
void |
incrementDataInconsistencyCount()
Increment the count of failed ops due to a DATAINCONSISTENCY Exception.
|
void |
incrementInvalidACLCount()
Increment the count of failed ops due to INVALIDACL Exception.
|
void |
incrementNoAuthCount()
Increment the count of failed ops due to NOAUTH Exception.
|
void |
incrementOperationTimeoutCount()
Increment the count of failed ops due to an OPERATIONTIMEOUT Exception.
|
void |
incrementRuntimeInconsistencyCount()
Increment the count of failed ops due to RUNTIMEINCONSISTENCY Exception.
|
void |
incrementSessionExpiredCount()
Increment the count of failed ops due to a SESSIONEXPIRED Exception.
|
void |
incrementSystemErrorCount()
Increment the count of failed ops due to a SYSTEMERROR Exception.
|
void |
incrementTotalFailedZKCalls()
Record the total number of failed ZooKeeper API calls.
|
void |
recordReadOperationLatency(long latency)
Record the latency incurred for read operations.
|
void |
recordSyncOperationLatency(long latency)
Record the latency incurred for sync operations.
|
void |
recordWriteOperationLatency(long latency)
Record the latency incurred for write operations.
|
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogramclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogrampublic void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector,
boolean all)
getMetrics in interface org.apache.hadoop.metrics2.MetricsSourcegetMetrics in class BaseSourceImplpublic void incrementAuthFailedCount()
MetricsZooKeeperSourceincrementAuthFailedCount in interface MetricsZooKeeperSourcepublic void incrementConnectionLossCount()
MetricsZooKeeperSourceincrementConnectionLossCount in interface MetricsZooKeeperSourcepublic void incrementDataInconsistencyCount()
MetricsZooKeeperSourceincrementDataInconsistencyCount in interface MetricsZooKeeperSourcepublic void incrementInvalidACLCount()
MetricsZooKeeperSourceincrementInvalidACLCount in interface MetricsZooKeeperSourcepublic void incrementNoAuthCount()
MetricsZooKeeperSourceincrementNoAuthCount in interface MetricsZooKeeperSourcepublic void incrementOperationTimeoutCount()
MetricsZooKeeperSourceincrementOperationTimeoutCount in interface MetricsZooKeeperSourcepublic void incrementRuntimeInconsistencyCount()
MetricsZooKeeperSourceincrementRuntimeInconsistencyCount in interface MetricsZooKeeperSourcepublic void incrementSessionExpiredCount()
MetricsZooKeeperSourceincrementSessionExpiredCount in interface MetricsZooKeeperSourcepublic void incrementSystemErrorCount()
MetricsZooKeeperSourceincrementSystemErrorCount in interface MetricsZooKeeperSourcepublic void incrementTotalFailedZKCalls()
MetricsZooKeeperSourceincrementTotalFailedZKCalls in interface MetricsZooKeeperSourcepublic void recordReadOperationLatency(long latency)
MetricsZooKeeperSourcerecordReadOperationLatency in interface MetricsZooKeeperSourcepublic void recordWriteOperationLatency(long latency)
MetricsZooKeeperSourcerecordWriteOperationLatency in interface MetricsZooKeeperSourcepublic void recordSyncOperationLatency(long latency)
MetricsZooKeeperSourcerecordSyncOperationLatency in interface MetricsZooKeeperSourceCopyright © 2007–2019 Cloudera. All rights reserved.