this.cacheStats.getLoadTime() - this.prevLoadTime; long deltaLoadsCompleted = this.cacheStats.getLoadsCompleted() -
/** * Updates the previous values of statistics */ private void updatePrevious() { if (this.cacheStats != null && !this.cacheStats.isClosed()) { this.prevLoadTime = this.cacheStats.getLoadTime(); this.prevLoadsCompleted = this.cacheStats.getLoadsCompleted(); this.prevNetsearchTime = this.cacheStats.getNetsearchTime(); this.prevNetsearchesCompleted = this.cacheStats.getNetsearchesCompleted(); this.prevGets = this.cacheStats.getGets(); } else { this.prevLoadTime = 0L; this.prevLoadsCompleted = 0L; this.prevNetsearchTime = 0L; this.prevNetsearchesCompleted = 0L; this.prevGets = 0L; } }
/** * Updates the previous values of statistics */ private void updatePrevious() { if (this.cacheStats != null && !this.cacheStats.isClosed()) { this.prevLoadTime = this.cacheStats.getLoadTime(); this.prevLoadsCompleted = this.cacheStats.getLoadsCompleted(); this.prevNetsearchTime = this.cacheStats.getNetsearchTime(); this.prevNetsearchesCompleted = this.cacheStats.getNetsearchesCompleted(); this.prevGets = this.cacheStats.getGets(); } else { this.prevLoadTime = 0L; this.prevLoadsCompleted = 0L; this.prevNetsearchTime = 0L; this.prevNetsearchesCompleted = 0L; this.prevGets = 0L; } }
this.cacheStats.getLoadTime() - this.prevLoadTime; long deltaLoadsCompleted = this.cacheStats.getLoadsCompleted() -
region.get("Test1 " + i); long firstLoadTime = stats.getLoadTime(); long firstLoadsCompleted = stats.getLoadsCompleted(); assertTrue(firstLoadTime >= 0); long secondLoadTime = stats.getLoadTime(); long secondLoadsCompleted = stats.getLoadsCompleted(); assertTrue("firstLoadTime=" + firstLoadTime + ", secondLoadTime=" + secondLoadTime, secondLoadTime >= firstLoadTime); long thirdLoadTime = stats.getLoadTime(); long thirdLoadsCompleted = stats.getLoadsCompleted(); assertTrue(thirdLoadTime > secondLoadTime);