/** * Good enough attempt. Last writer wins. It doesn't really matter which one gets to update, * as something gets set * @param region * @param currentStats */ public void update(byte[] region, RegionLoadStats currentStats) { RegionStatistics regionStat = this.stats.get(region); if(regionStat == null){ regionStat = new RegionStatistics(); this.stats.put(region, regionStat); } regionStat.update(currentStats); }
/** * Good enough attempt. Last writer wins. It doesn't really matter which one gets to update, * as something gets set * @param region * @param currentStats */ public void update(byte[] region, RegionLoadStats currentStats) { RegionStatistics regionStat = this.stats.get(region); if(regionStat == null){ regionStat = new RegionStatistics(); this.stats.put(region, regionStat); } regionStat.update(currentStats); }
/** * Good enough attempt. Last writer wins. It doesn't really matter which one gets to update, * as something gets set * @param region * @param currentStats */ public void update(byte[] region, ClientProtos.RegionLoadStats currentStats) { RegionStatistics regionStat = this.stats.get(region); if(regionStat == null){ regionStat = new RegionStatistics(); this.stats.put(region, regionStat); } regionStat.update(currentStats); }
/** * Good enough attempt. Last writer wins. It doesn't really matter which one gets to update, * as something gets set * @param region * @param currentStats */ public void update(byte[] region, RegionLoadStats currentStats) { RegionStatistics regionStat = this.stats.get(region); if(regionStat == null){ regionStat = new RegionStatistics(); this.stats.put(region, regionStat); } regionStat.update(currentStats); }