public void update() { // logWriter.info("ABHISHEK: TableMBeanBridge.TableStatsData.update() : entering"); GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (cache != null) { InternalDistributedSystem system = cache.getDistributedSystem(); Statistics[] regionPerfStats = system.findStatisticsByTextId(statsTxtId); for (int i = 0; i < regionPerfStats.length; ) { // this.scans = ManagementConstants.NOT_AVAILABLE_INT; this.inserts = regionPerfStats[i].get("creates").intValue(); this.updates = regionPerfStats[i].get("puts").intValue(); this.deletes = regionPerfStats[i].get("destroys").intValue(); break; // break after finding first instance //TODO Abhishek what if there are two different sub-regions with same name? This actually needs to be addressed in RegionPerfStats. } } // logWriter.info("ABHISHEK: TableMBeanBridge.TableStatsData.update() : exiting"); }
public void update() { // logWriter.info("ABHISHEK: TableMBeanBridge.TableStatsData.update() : entering"); GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (cache != null) { InternalDistributedSystem system = cache.getDistributedSystem(); Statistics[] regionPerfStats = system.findStatisticsByTextId(statsTxtId); for (int i = 0; i < regionPerfStats.length; ) { // this.scans = ManagementConstants.NOT_AVAILABLE_INT; this.inserts = regionPerfStats[i].get("creates").intValue(); this.updates = regionPerfStats[i].get("puts").intValue(); this.deletes = regionPerfStats[i].get("destroys").intValue(); break; // break after finding first instance //TODO Abhishek what if there are two different sub-regions with same name? This actually needs to be addressed in RegionPerfStats. } } // logWriter.info("ABHISHEK: TableMBeanBridge.TableStatsData.update() : exiting"); }
public void update() { // logWriter.info("ABHISHEK: TableMBeanBridge.TableStatsData.update() : entering"); GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (cache != null) { InternalDistributedSystem system = cache.getDistributedSystem(); Statistics[] regionPerfStats = system.findStatisticsByTextId(statsTxtId); for (int i = 0; i < regionPerfStats.length; ) { // this.scans = ManagementConstants.NOT_AVAILABLE_INT; this.inserts = regionPerfStats[i].get("creates").intValue(); this.updates = regionPerfStats[i].get("puts").intValue(); this.deletes = regionPerfStats[i].get("destroys").intValue(); break; // break after finding first instance //TODO Abhishek what if there are two different sub-regions with same name? This actually needs to be addressed in RegionPerfStats. } } // logWriter.info("ABHISHEK: TableMBeanBridge.TableStatsData.update() : exiting"); }
statistics = dm.getSystem().findStatisticsByTextId(textId); if (statistics.length == 0) { logger.error(LocalizedMessage.create(
statistics = dm.getSystem().findStatisticsByTextId(textId); if (statistics.length == 0) { logger.error(LocalizedStrings.