public CacheEvictionStatsBuilder append(CacheEvictionStats stats) { this.evictedBlocks += stats.getEvictedBlocks(); this.maxCacheSize += stats.getMaxCacheSize(); this.exceptions.putAll(stats.getExceptions()); return this; }
public static HBaseProtos.CacheEvictionStats toCacheEvictionStats( CacheEvictionStats cacheEvictionStats) { HBaseProtos.CacheEvictionStats.Builder builder = HBaseProtos.CacheEvictionStats.newBuilder(); for (Map.Entry<byte[], Throwable> entry : cacheEvictionStats.getExceptions().entrySet()) { builder.addException( RegionExceptionMessage.newBuilder() .setRegion(RequestConverter.buildRegionSpecifier( RegionSpecifierType.REGION_NAME, entry.getKey())) .setException(ResponseConverter.buildException(entry.getValue())) .build() ); } return builder .setEvictedBlocks(cacheEvictionStats.getEvictedBlocks()) .setMaxCacheSize(cacheEvictionStats.getMaxCacheSize()) .build(); }
public CacheEvictionStatsBuilder append(CacheEvictionStats stats) { this.evictedBlocks += stats.getEvictedBlocks(); this.maxCacheSize += stats.getMaxCacheSize(); this.exceptions.putAll(stats.getExceptions()); return this; }
public static HBaseProtos.CacheEvictionStats toCacheEvictionStats( CacheEvictionStats cacheEvictionStats) { HBaseProtos.CacheEvictionStats.Builder builder = HBaseProtos.CacheEvictionStats.newBuilder(); for (Map.Entry<byte[], Throwable> entry : cacheEvictionStats.getExceptions().entrySet()) { builder.addException( RegionExceptionMessage.newBuilder() .setRegion(RequestConverter.buildRegionSpecifier( RegionSpecifierType.REGION_NAME, entry.getKey())) .setException(ResponseConverter.buildException(entry.getValue())) .build() ); } return builder .setEvictedBlocks(cacheEvictionStats.getEvictedBlocks()) .setMaxCacheSize(cacheEvictionStats.getMaxCacheSize()) .build(); }
public CacheEvictionStatsBuilder append(CacheEvictionStats stats) { this.evictedBlocks += stats.getEvictedBlocks(); this.maxCacheSize += stats.getMaxCacheSize(); this.exceptions.putAll(stats.getExceptions()); return this; }
public static HBaseProtos.CacheEvictionStats toCacheEvictionStats( CacheEvictionStats cacheEvictionStats) { HBaseProtos.CacheEvictionStats.Builder builder = HBaseProtos.CacheEvictionStats.newBuilder(); for (Map.Entry<byte[], Throwable> entry : cacheEvictionStats.getExceptions().entrySet()) { builder.addException( RegionExceptionMessage.newBuilder() .setRegion(RequestConverter.buildRegionSpecifier( RegionSpecifierType.REGION_NAME, entry.getKey())) .setException(ResponseConverter.buildException(entry.getValue())) .build() ); } return builder .setEvictedBlocks(cacheEvictionStats.getEvictedBlocks()) .setMaxCacheSize(cacheEvictionStats.getMaxCacheSize()) .build(); }