org.apache.hadoop.hbase.regionserver
Interface MetricsRegionServerWrapper


public interface MetricsRegionServerWrapper

This is the interface that will expose RegionServer information to hadoop1/hadoop2 implementations of the MetricsRegionServerSource.


Method Summary
 void forceRecompute()
          Force a re-computation of the metrics.
 long getAvgStoreFileAge()
           
 long getBlockCacheCount()
          Get the number of items in the block cache.
 long getBlockCacheEvictedCount()
          Get the number of items evicted from the block cache.
 long getBlockCacheFailedInsertions()
          Number of cache insertions that failed.
 long getBlockCacheFreeSize()
          Get the size (in bytes) of the block cache that is free.
 int getBlockCacheHitCachingPercent()
          Get the percent of requests with the block cache turned on that hit the block cache.
 long getBlockCacheHitCount()
          Get the count of hits to the block cache
 int getBlockCacheHitPercent()
          Get the percent of all requests that hit the block cache.
 long getBlockCacheMissCount()
          Get the count of misses to the block cache.
 long getBlockCacheSize()
          Get the total size (in bytes) of the block cache.
 long getBlockedRequestsCount()
           
 long getCheckAndMutateChecksFailed()
          Get the number of CAS operations that failed.
 long getCheckAndMutateChecksPassed()
          Get the number of CAS operations that passed.
 String getClusterId()
          Get the Cluster ID
 long getCompactedCellsCount()
          Get the number of cells processed during minor compactions.
 long getCompactedCellsSize()
          Get the total amount of data processed during minor compactions, in bytes.
 int getCompactionQueueSize()
          Get the size of the compaction queue
 String getCoprocessors()
          Get the co-processors
 long getDataInMemoryWithoutWAL()
          Ammount of data in the memstore but not in the WAL because mutations explicitly had their WAL turned off.
 long getFlushedCellsCount()
          Get the number of cells flushed to disk.
 long getFlushedCellsSize()
          Get the total amount of data flushed to disk, in bytes.
 int getFlushQueueSize()
          Get the size of the flush queue.
 long getHLogFileSize()
          Get the size of HLog files of this region server.
 int getLargeCompactionQueueSize()
           
 long getMajorCompactedCellsCount()
          Get the number of cells processed during major compactions.
 long getMajorCompactedCellsSize()
          Get the total amount of data processed during major compactions, in bytes.
 long getMaxStoreFileAge()
           
 long getMemstoreSize()
          Get the size of the memstore on this region server.
 long getMinStoreFileAge()
           
 long getNumHLogFiles()
          Get the number of HLog files of this region server.
 long getNumMutationsWithoutWAL()
          Number of mutations received with WAL explicitly turned off.
 long getNumOnlineRegions()
          The number of online regions
 long getNumReferenceFiles()
           
 long getNumStoreFiles()
          Get the number of store files hosted on this region server.
 long getNumStores()
          Get the number of stores hosted on this region server.
 int getPercentFileLocal()
          Get the percent of HFiles' that are local.
 long getReadRequestsCount()
          Get the number of read requests to regions hosted on this region server.
 double getRequestsPerSecond()
          Get the number of requests per second.
 String getServerName()
          Get ServerName
 int getSmallCompactionQueueSize()
           
 int getSplitQueueSize()
          Get the size of the split queue
 long getStartCode()
          Get HRegionServer start time
 long getStoreFileIndexSize()
          Get the Size (in bytes) of indexes in storefiles on disk.
 long getStoreFileSize()
          Get the total size of the store files this region server is serving from.
 long getTotalRequestCount()
          Get the total number of requests per second.
 long getTotalStaticBloomSize()
          Get the size (in bytes) of the static bloom filters.
 long getTotalStaticIndexSize()
          Get the size (in bytes) of of the static indexes including the roots.
 long getUpdatesBlockedTime()
          Get the amount of time that updates were blocked.
 long getWriteRequestsCount()
          Get the number of write requests to regions hosted on this region server.
 String getZookeeperQuorum()
          Get the Zookeeper Quorum Info
 

Method Detail

getServerName

String getServerName()
Get ServerName


getClusterId

String getClusterId()
Get the Cluster ID

Returns:
Cluster ID

getZookeeperQuorum

String getZookeeperQuorum()
Get the Zookeeper Quorum Info

Returns:
Zookeeper Quorum Info

getCoprocessors

String getCoprocessors()
Get the co-processors

Returns:
Co-processors

getStartCode

long getStartCode()
Get HRegionServer start time

Returns:
Start time of RegionServer in milliseconds

getNumOnlineRegions

long getNumOnlineRegions()
The number of online regions


getNumStores

long getNumStores()
Get the number of stores hosted on this region server.


getNumHLogFiles

long getNumHLogFiles()
Get the number of HLog files of this region server.


getHLogFileSize

long getHLogFileSize()
Get the size of HLog files of this region server.


getNumStoreFiles

long getNumStoreFiles()
Get the number of store files hosted on this region server.


getMemstoreSize

long getMemstoreSize()
Get the size of the memstore on this region server.


getStoreFileSize

long getStoreFileSize()
Get the total size of the store files this region server is serving from.


getMaxStoreFileAge

long getMaxStoreFileAge()
Returns:
Max age of store files hosted on this region server

getMinStoreFileAge

long getMinStoreFileAge()
Returns:
Min age of store files hosted on this region server

getAvgStoreFileAge

long getAvgStoreFileAge()
Returns:
Average age of store files hosted on this region server

getNumReferenceFiles

long getNumReferenceFiles()
Returns:
Number of reference files on this region server

getRequestsPerSecond

double getRequestsPerSecond()
Get the number of requests per second.


getTotalRequestCount

long getTotalRequestCount()
Get the total number of requests per second.


getReadRequestsCount

long getReadRequestsCount()
Get the number of read requests to regions hosted on this region server.


getWriteRequestsCount

long getWriteRequestsCount()
Get the number of write requests to regions hosted on this region server.


getCheckAndMutateChecksFailed

long getCheckAndMutateChecksFailed()
Get the number of CAS operations that failed.


getCheckAndMutateChecksPassed

long getCheckAndMutateChecksPassed()
Get the number of CAS operations that passed.


getStoreFileIndexSize

long getStoreFileIndexSize()
Get the Size (in bytes) of indexes in storefiles on disk.


getTotalStaticIndexSize

long getTotalStaticIndexSize()
Get the size (in bytes) of of the static indexes including the roots.


getTotalStaticBloomSize

long getTotalStaticBloomSize()
Get the size (in bytes) of the static bloom filters.


getNumMutationsWithoutWAL

long getNumMutationsWithoutWAL()
Number of mutations received with WAL explicitly turned off.


getDataInMemoryWithoutWAL

long getDataInMemoryWithoutWAL()
Ammount of data in the memstore but not in the WAL because mutations explicitly had their WAL turned off.


getPercentFileLocal

int getPercentFileLocal()
Get the percent of HFiles' that are local.


getSplitQueueSize

int getSplitQueueSize()
Get the size of the split queue


getCompactionQueueSize

int getCompactionQueueSize()
Get the size of the compaction queue


getSmallCompactionQueueSize

int getSmallCompactionQueueSize()

getLargeCompactionQueueSize

int getLargeCompactionQueueSize()

getFlushQueueSize

int getFlushQueueSize()
Get the size of the flush queue.


getBlockCacheFreeSize

long getBlockCacheFreeSize()
Get the size (in bytes) of the block cache that is free.


getBlockCacheCount

long getBlockCacheCount()
Get the number of items in the block cache.


getBlockCacheSize

long getBlockCacheSize()
Get the total size (in bytes) of the block cache.


getBlockCacheHitCount

long getBlockCacheHitCount()
Get the count of hits to the block cache


getBlockCacheMissCount

long getBlockCacheMissCount()
Get the count of misses to the block cache.


getBlockCacheEvictedCount

long getBlockCacheEvictedCount()
Get the number of items evicted from the block cache.


getBlockCacheHitPercent

int getBlockCacheHitPercent()
Get the percent of all requests that hit the block cache.


getBlockCacheHitCachingPercent

int getBlockCacheHitCachingPercent()
Get the percent of requests with the block cache turned on that hit the block cache.


getBlockCacheFailedInsertions

long getBlockCacheFailedInsertions()
Number of cache insertions that failed.


forceRecompute

void forceRecompute()
Force a re-computation of the metrics.


getUpdatesBlockedTime

long getUpdatesBlockedTime()
Get the amount of time that updates were blocked.


getFlushedCellsCount

long getFlushedCellsCount()
Get the number of cells flushed to disk.


getCompactedCellsCount

long getCompactedCellsCount()
Get the number of cells processed during minor compactions.


getMajorCompactedCellsCount

long getMajorCompactedCellsCount()
Get the number of cells processed during major compactions.


getFlushedCellsSize

long getFlushedCellsSize()
Get the total amount of data flushed to disk, in bytes.


getCompactedCellsSize

long getCompactedCellsSize()
Get the total amount of data processed during minor compactions, in bytes.


getMajorCompactedCellsSize

long getMajorCompactedCellsSize()
Get the total amount of data processed during major compactions, in bytes.


getBlockedRequestsCount

long getBlockedRequestsCount()
Returns:
Count of requests blocked because the memstore size is larger than blockingMemStoreSize


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