org.apache.hadoop.hbase.regionserver
Class MetricsRegionServerSourceImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.metrics.BaseSourceImpl
      extended by org.apache.hadoop.hbase.regionserver.MetricsRegionServerSourceImpl
All Implemented Interfaces:
BaseSource, JvmPauseMonitorSource, MetricsRegionServerSource, MetricsSource

@InterfaceAudience.Private
public class MetricsRegionServerSourceImpl
extends BaseSourceImpl
implements MetricsRegionServerSource

Hadoop2 implementation of MetricsRegionServerSource. Implements BaseSource through BaseSourceImpl, following the pattern


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
metricsContext, metricsDescription, metricsJmxContext, metricsName, metricsRegistry
 
Fields inherited from interface org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource
APPEND_KEY, AVERAGE_REGION_SIZE, AVERAGE_REGION_SIZE_DESC, AVG_STORE_FILE_AGE, AVG_STORE_FILE_AGE_DESC, BLOCK_CACHE_BLOOM_CHUNK_HIT_COUNT, BLOCK_CACHE_BLOOM_CHUNK_MISS_COUNT, BLOCK_CACHE_COUNT, BLOCK_CACHE_COUNT_DESC, BLOCK_CACHE_DATA_HIT_COUNT, BLOCK_CACHE_DATA_MISS_COUNT, BLOCK_CACHE_DELETE_FAMILY_BLOOM_HIT_COUNT, BLOCK_CACHE_DELETE_FAMILY_BLOOM_MISS_COUNT, BLOCK_CACHE_ENCODED_DATA_HIT_COUNT, BLOCK_CACHE_ENCODED_DATA_MISS_COUNT, BLOCK_CACHE_EVICTION_COUNT, BLOCK_CACHE_EVICTION_COUNT_DESC, BLOCK_CACHE_EXPRESS_HIT_PERCENT, BLOCK_CACHE_EXPRESS_HIT_PERCENT_DESC, BLOCK_CACHE_FAILED_INSERTION_COUNT, BLOCK_CACHE_FAILED_INSERTION_COUNT_DESC, BLOCK_CACHE_FILE_INFO_HIT_COUNT, BLOCK_CACHE_FILE_INFO_MISS_COUNT, BLOCK_CACHE_FREE_DESC, BLOCK_CACHE_FREE_SIZE, BLOCK_CACHE_GENERAL_BLOOM_META_HIT_COUNT, BLOCK_CACHE_GENERAL_BLOOM_META_MISS_COUNT, BLOCK_CACHE_HIT_COUNT, BLOCK_CACHE_HIT_COUNT_DESC, BLOCK_CACHE_HIT_PERCENT, BLOCK_CACHE_HIT_PERCENT_DESC, BLOCK_CACHE_INTERMEDIATE_INDEX_HIT_COUNT, BLOCK_CACHE_INTERMEDIATE_INDEX_MISS_COUNT, BLOCK_CACHE_LEAF_INDEX_HIT_COUNT, BLOCK_CACHE_LEAF_INDEX_MISS_COUNT, BLOCK_CACHE_META_HIT_COUNT, BLOCK_CACHE_META_MISS_COUNT, BLOCK_CACHE_MISS_COUNT, BLOCK_CACHE_ROOT_INDEX_HIT_COUNT, BLOCK_CACHE_ROOT_INDEX_MISS_COUNT, BLOCK_CACHE_SIZE, BLOCK_CACHE_SIZE_DESC, BLOCK_CACHE_TRAILER_HIT_COUNT, BLOCK_CACHE_TRAILER_MISS_COUNT, BLOCK_COUNT_MISS_COUNT_DESC, BLOCKED_REQUESTS_COUNT, BLOCKED_REQUESTS_COUNT_DESC, CHECK_MUTATE_FAILED_COUNT, CHECK_MUTATE_FAILED_COUNT_DESC, CHECK_MUTATE_PASSED_COUNT, CHECK_MUTATE_PASSED_COUNT_DESC, CLUSTER_ID_DESC, CLUSTER_ID_NAME, COMPACTED_CELLS, COMPACTED_CELLS_DESC, COMPACTED_CELLS_SIZE, COMPACTED_CELLS_SIZE_DESC, COMPACTION_QUEUE_LENGTH, COMPACTION_QUEUE_LENGTH_DESC, DATA_SIZE_WITHOUT_WAL, DATA_SIZE_WITHOUT_WAL_DESC, DELETE_KEY, FLUSH_KEY, FLUSH_QUEUE_LENGTH, FLUSH_QUEUE_LENGTH_DESC, FLUSHED_CELLS, FLUSHED_CELLS_DESC, FLUSHED_CELLS_SIZE, FLUSHED_CELLS_SIZE_DESC, GET_KEY, HLOGFILE_COUNT, HLOGFILE_COUNT_DESC, HLOGFILE_SIZE, HLOGFILE_SIZE_DESC, INCREMENT_KEY, LARGE_COMPACTION_QUEUE_LENGTH, MAJOR_COMPACTED_CELLS, MAJOR_COMPACTED_CELLS_DESC, MAJOR_COMPACTED_CELLS_SIZE, MAJOR_COMPACTED_CELLS_SIZE_DESC, MAX_STORE_FILE_AGE, MAX_STORE_FILE_AGE_DESC, MEMSTORE_SIZE, MEMSTORE_SIZE_DESC, METRICS_CONTEXT, METRICS_DESCRIPTION, METRICS_JMX_CONTEXT, METRICS_NAME, MIN_STORE_FILE_AGE, MIN_STORE_FILE_AGE_DESC, MUTATE_KEY, NUM_REFERENCE_FILES, NUM_REFERENCE_FILES_DESC, NUMBER_OF_MUTATIONS_WITHOUT_WAL, NUMBER_OF_MUTATIONS_WITHOUT_WAL_DESC, PERCENT_FILES_LOCAL, PERCENT_FILES_LOCAL_DESC, READ_REQUEST_COUNT, READ_REQUEST_COUNT_DESC, REGION_COUNT, REGION_COUNT_DESC, REPLAY_KEY, RS_START_TIME_DESC, RS_START_TIME_NAME, SCAN_NEXT_KEY, SERVER_NAME_DESC, SERVER_NAME_NAME, SLOW_APPEND_DESC, SLOW_APPEND_KEY, SLOW_DELETE_DESC, SLOW_DELETE_KEY, SLOW_GET_DESC, SLOW_GET_KEY, SLOW_INCREMENT_DESC, SLOW_INCREMENT_KEY, SLOW_MUTATE_DESC, SLOW_MUTATE_KEY, SMALL_COMPACTION_QUEUE_LENGTH, SPLIT_KEY, SPLIT_QUEUE_LENGTH, SPLIT_QUEUE_LENGTH_DESC, SPLIT_REQUEST_DESC, SPLIT_REQUEST_KEY, SPLIT_SUCCESS_DESC, SPLIT_SUCCESS_KEY, STATIC_BLOOM_SIZE, STATIC_BLOOM_SIZE_DESC, STATIC_INDEX_SIZE, STATIC_INDEX_SIZE_DESC, STORE_COUNT, STORE_COUNT_DESC, STOREFILE_COUNT, STOREFILE_COUNT_DESC, STOREFILE_INDEX_SIZE, STOREFILE_INDEX_SIZE_DESC, STOREFILE_SIZE, STOREFILE_SIZE_DESC, TOTAL_REQUEST_COUNT, TOTAL_REQUEST_COUNT_DESC, UPDATES_BLOCKED_DESC, UPDATES_BLOCKED_TIME, WRITE_REQUEST_COUNT, WRITE_REQUEST_COUNT_DESC, ZOOKEEPER_QUORUM_DESC, ZOOKEEPER_QUORUM_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.JvmPauseMonitorSource
INFO_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 Summary
MetricsRegionServerSourceImpl(MetricsRegionServerWrapper rsWrap)
           
MetricsRegionServerSourceImpl(String metricsName, String metricsDescription, String metricsContext, String metricsJmxContext, MetricsRegionServerWrapper rsWrap)
           
 
Method Summary
 void getMetrics(MetricsCollector metricsCollector, boolean all)
          Yes this is a get function that doesn't return anything.
 void incInfoThresholdExceeded(int count)
           
 void incrSlowAppend()
           
 void incrSlowDelete()
           
 void incrSlowGet()
           
 void incrSlowIncrement()
           
 void incrSlowPut()
           
 void incrSplitRequest()
           
 void incrSplitSuccess()
           
 void incWarnThresholdExceeded(int count)
           
 void updateAppend(long t)
           
 void updateDelete(long t)
           
 void updateFlushTime(long t)
           
 void updateGet(long t)
           
 void updateIncrement(long t)
           
 void updatePauseTimeWithGc(long t)
           
 void updatePauseTimeWithoutGc(long t)
           
 void updatePut(long t)
           
 void updateReplay(long t)
           
 void updateScannerNext(long scanSize)
           
 void updateSplitTime(long t)
           
 
Methods inherited from class org.apache.hadoop.hbase.metrics.BaseSourceImpl
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, getMetricsRegistry, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
 

Constructor Detail

MetricsRegionServerSourceImpl

public MetricsRegionServerSourceImpl(MetricsRegionServerWrapper rsWrap)

MetricsRegionServerSourceImpl

public MetricsRegionServerSourceImpl(String metricsName,
                                     String metricsDescription,
                                     String metricsContext,
                                     String metricsJmxContext,
                                     MetricsRegionServerWrapper rsWrap)
Method Detail

updatePut

public void updatePut(long t)
Specified by:
updatePut in interface MetricsRegionServerSource

updateDelete

public void updateDelete(long t)
Specified by:
updateDelete in interface MetricsRegionServerSource

updateGet

public void updateGet(long t)
Specified by:
updateGet in interface MetricsRegionServerSource

updateIncrement

public void updateIncrement(long t)
Specified by:
updateIncrement in interface MetricsRegionServerSource

updateAppend

public void updateAppend(long t)
Specified by:
updateAppend in interface MetricsRegionServerSource

updateReplay

public void updateReplay(long t)
Specified by:
updateReplay in interface MetricsRegionServerSource

updateScannerNext

public void updateScannerNext(long scanSize)
Specified by:
updateScannerNext in interface MetricsRegionServerSource

incrSlowPut

public void incrSlowPut()
Specified by:
incrSlowPut in interface MetricsRegionServerSource

incrSlowDelete

public void incrSlowDelete()
Specified by:
incrSlowDelete in interface MetricsRegionServerSource

incrSlowGet

public void incrSlowGet()
Specified by:
incrSlowGet in interface MetricsRegionServerSource

incrSlowIncrement

public void incrSlowIncrement()
Specified by:
incrSlowIncrement in interface MetricsRegionServerSource

incrSlowAppend

public void incrSlowAppend()
Specified by:
incrSlowAppend in interface MetricsRegionServerSource

incrSplitRequest

public void incrSplitRequest()
Specified by:
incrSplitRequest in interface MetricsRegionServerSource

incrSplitSuccess

public void incrSplitSuccess()
Specified by:
incrSplitSuccess in interface MetricsRegionServerSource

updateSplitTime

public void updateSplitTime(long t)
Specified by:
updateSplitTime in interface MetricsRegionServerSource

updateFlushTime

public void updateFlushTime(long t)
Specified by:
updateFlushTime in interface MetricsRegionServerSource

getMetrics

public void getMetrics(MetricsCollector metricsCollector,
                       boolean all)
Yes this is a get function that doesn't return anything. Thanks Hadoop for breaking all expectations of java programmers. Instead of returning anything Hadoop metrics expects getMetrics to push the metrics into the collector.

Specified by:
getMetrics in interface MetricsSource
Overrides:
getMetrics in class BaseSourceImpl
Parameters:
metricsCollector - Collector to accept metrics
all - push all or only changed?

incInfoThresholdExceeded

public void incInfoThresholdExceeded(int count)
Specified by:
incInfoThresholdExceeded in interface JvmPauseMonitorSource

incWarnThresholdExceeded

public void incWarnThresholdExceeded(int count)
Specified by:
incWarnThresholdExceeded in interface JvmPauseMonitorSource

updatePauseTimeWithGc

public void updatePauseTimeWithGc(long t)
Specified by:
updatePauseTimeWithGc in interface JvmPauseMonitorSource

updatePauseTimeWithoutGc

public void updatePauseTimeWithoutGc(long t)
Specified by:
updatePauseTimeWithoutGc in interface JvmPauseMonitorSource


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.