@Override public CachePerfStats getCachePerfStats() { return new CachePerfStats(cache.getDistributedSystem(), "partitionMetaData"); } };
@Override public CachePerfStats getCachePerfStats() { return new CachePerfStats(cache.getDistributedSystem(), "managementRegionStats"); } };
@Override public CachePerfStats getCachePerfStats() { return new CachePerfStats(cache.getDistributedSystem(), META_DATA_REGION_NAME); } };
@Before public void setUp() { StatisticsType statisticsType = CachePerfStats.getStatisticsType(); StatisticsManager statisticsManager = mock(StatisticsManager.class); StatisticsFactory statisticsFactory = mock(StatisticsFactory.class); Clock clock = mock(Clock.class); statistics = spy(new Atomic50StatisticsImpl(statisticsType, TEXT_ID, 1, 1, statisticsManager)); when(clock.getTime()).thenReturn(CLOCK_TIME); when(statisticsFactory.createAtomicStatistics(eq(statisticsType), eq(TEXT_ID))) .thenReturn(statistics); CachePerfStats.enableClockStats = true; cachePerfStats = new CachePerfStats(statisticsFactory, TEXT_ID, clock); }
() -> new CachePerfStats(cache.getDistributedSystem(), "managementRegionStats");
this.cachePerfStats = new CachePerfStats(system); CachePerfStats.enableClockStats = this.system.getConfig().getEnableTimeStatistics();