Ejemplo n.º 1
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();
   }
 }
 /**
  * @return The total size of all Bloom filter blocks, not just loaded into the block cache, in KB.
  */
 public int getTotalStaticBloomSizeKB() {
   return regionLoadPB.getTotalStaticBloomSizeKB();
 }