/**
  * @return The total size of all Bloom filter blocks, not just loaded into the block cache, in KB.
  */
 public int getTotalStaticBloomSizeKB() {
   return regionLoadPB.getTotalStaticBloomSizeKB();
 }
 /** @return The current total size of root-level indexes for the region, in KB. */
 public int getRootIndexSizeKB() {
   return regionLoadPB.getRootIndexSizeKB();
 }
 /** @return The total size of all index blocks, not just the root level, in KB. */
 public int getTotalStaticIndexSizeKB() {
   return regionLoadPB.getTotalStaticIndexSizeKB();
 }
 /** @return the number of read requests made to region */
 public long getReadRequestsCount() {
   return regionLoadPB.getReadRequestsCount();
 }
 /** @return the number of write requests made to region */
 public long getWriteRequestsCount() {
   return regionLoadPB.getWriteRequestsCount();
 }
 /** @return the memstore size, in MB */
 public int getMemStoreSizeMB() {
   return regionLoadPB.getMemstoreSizeMB();
 }
 /** @return the approximate size of storefile indexes on the heap, in MB */
 public int getStorefileIndexSizeMB() {
   return regionLoadPB.getStorefileIndexSizeMB();
 }
 /** @return the region name */
 public byte[] getName() {
   return regionLoadPB.getRegionSpecifier().getValue().toByteArray();
 }
 /** @return the number of storefiles */
 public int getStorefiles() {
   return regionLoadPB.getStorefiles();
 }
 /** @return the uncompressed size of the storefiles in MB. */
 public int getStoreUncompressedSizeMB() {
   return regionLoadPB.getStoreUncompressedSizeMB();
 }
 /**
  * This does not really belong inside RegionLoad but its being done in the name of expediency.
  *
  * @return the completed sequence Id for the region
  */
 public long getCompleteSequenceId() {
   return regionLoadPB.getCompleteSequenceId();
 }
 /** @return the number of already compacted kvs in current compaction */
 public long getCurrentCompactedKVs() {
   return regionLoadPB.getCurrentCompactedKVs();
 }
 /** @return the total number of kvs in current compaction */
 public long getTotalCompactingKVs() {
   return regionLoadPB.getTotalCompactingKVs();
 }
Ejemplo n.º 14
0
 public ServerLoad(ClusterStatusProtos.ServerLoad serverLoad) {
   this.serverLoad = serverLoad;
   for (ClusterStatusProtos.RegionLoad rl : serverLoad.getRegionLoadsList()) {
     stores += rl.getStores();
     storefiles += rl.getStorefiles();
     storeUncompressedSizeMB += rl.getStoreUncompressedSizeMB();
     storefileSizeMB += rl.getStorefileSizeMB();
     memstoreSizeMB += rl.getMemstoreSizeMB();
     storefileIndexSizeMB += rl.getStorefileIndexSizeMB();
     readRequestsCount += rl.getReadRequestsCount();
     writeRequestsCount += rl.getWriteRequestsCount();
     rootIndexSizeKB += rl.getRootIndexSizeKB();
     totalStaticIndexSizeKB += rl.getTotalStaticIndexSizeKB();
     totalStaticBloomSizeKB += rl.getTotalStaticBloomSizeKB();
     totalCompactingKVs += rl.getTotalCompactingKVs();
     currentCompactedKVs += rl.getCurrentCompactedKVs();
   }
 }