@InterfaceAudience.Private public class MetricsZooKeeperSourceImpl extends BaseSourceImpl implements MetricsZooKeeperSource
metricsAdapter, metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry, registry
EXCEPTION_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_NAME
HBASE_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, updateHistogram
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decGauge, getMetricRegistryInfo, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram
public void getMetrics(org.apache.hadoop.metrics2.MetricsCollector metricsCollector, boolean all)
getMetrics
in interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
in class BaseSourceImpl
public void incrementAuthFailedCount()
MetricsZooKeeperSource
incrementAuthFailedCount
in interface MetricsZooKeeperSource
public void incrementConnectionLossCount()
MetricsZooKeeperSource
incrementConnectionLossCount
in interface MetricsZooKeeperSource
public void incrementDataInconsistencyCount()
MetricsZooKeeperSource
incrementDataInconsistencyCount
in interface MetricsZooKeeperSource
public void incrementInvalidACLCount()
MetricsZooKeeperSource
incrementInvalidACLCount
in interface MetricsZooKeeperSource
public void incrementNoAuthCount()
MetricsZooKeeperSource
incrementNoAuthCount
in interface MetricsZooKeeperSource
public void incrementOperationTimeoutCount()
MetricsZooKeeperSource
incrementOperationTimeoutCount
in interface MetricsZooKeeperSource
public void incrementRuntimeInconsistencyCount()
MetricsZooKeeperSource
incrementRuntimeInconsistencyCount
in interface MetricsZooKeeperSource
public void incrementSessionExpiredCount()
MetricsZooKeeperSource
incrementSessionExpiredCount
in interface MetricsZooKeeperSource
public void incrementSystemErrorCount()
MetricsZooKeeperSource
incrementSystemErrorCount
in interface MetricsZooKeeperSource
public void incrementTotalFailedZKCalls()
MetricsZooKeeperSource
incrementTotalFailedZKCalls
in interface MetricsZooKeeperSource
public void recordReadOperationLatency(long latency)
MetricsZooKeeperSource
recordReadOperationLatency
in interface MetricsZooKeeperSource
public void recordWriteOperationLatency(long latency)
MetricsZooKeeperSource
recordWriteOperationLatency
in interface MetricsZooKeeperSource
public void recordSyncOperationLatency(long latency)
MetricsZooKeeperSource
recordSyncOperationLatency
in interface MetricsZooKeeperSource
Copyright © 2007–2019 Cloudera. All rights reserved.