CachePerfStats { public void endRemoveAll(long start) { stats.incInt(removeAllsId, 1); if (clock.isEnabled()) stats.incLong(removeAllTimeId, getTime() - start); } CachePerfStats(StatisticsFactory factory, StatisticsClock clock);  CachePerfStats(StatisticsFactory factory, String textId, StatisticsClock clock); static StatisticsType getStatisticsType(); Statistics getStats(); long getTime(); int getLoadsCompleted(); long getLoadTime(); int getNetloadsCompleted(); int getNetsearchesCompleted(); long getNetsearchTime(); int getGetInitialImagesCompleted(); int getGetInitialImageKeysReceived(); int getRegions(); long getDestroys(); long getCreates(); long getPuts(); long getPutTime(); int getPutAlls(); long getUpdates(); long getInvalidates(); long getGets(); long getGetTime(); long getMisses(); int getReliableQueuedOps(); void incReliableQueuedOps(int inc); void incReliableQueueSize(int inc); void incReliableQueueMax(int inc); void incReliableRegions(int inc); int getReliableRegionsMissing(); void incReliableRegionsMissing(int inc); void incReliableRegionsQueuing(int inc); int getReliableRegionsMissingFullAccess(); void incReliableRegionsMissingFullAccess(int inc); int getReliableRegionsMissingLimitedAccess(); void incReliableRegionsMissingLimitedAccess(int inc); int getReliableRegionsMissingNoAccess(); void incReliableRegionsMissingNoAccess(int inc); void incQueuedEvents(int inc); int getDeltaFailedUpdates(); int getDeltasSent(); int getDeltaFullValuesSent(); long getTotalCompressionTime(); long getTotalDecompressionTime(); long getTotalCompressions(); long getTotalDecompressions(); long getTotalPreCompressedBytes(); long getTotalPostCompressedBytes(); long startCompression(); void endCompression(long startTime, long startSize, long endSize); long startDecompression(); void endDecompression(long startTime); long startLoad(); void endLoad(long start); long startNetload(); void endNetload(long start); long startNetsearch(); void endNetsearch(long start); long startCacheWriterCall(); void endCacheWriterCall(long start); long startCacheListenerCall(); void endCacheListenerCall(long start); long startGetInitialImage(); void endGetInitialImage(long start); void endNoGIIDone(long start); void incGetInitialImageKeysReceived(); long startIndexUpdate(); void endIndexUpdate(long start); long getIndexInitializationTime(); void incRegions(int inc); void incPartitionedRegions(int inc); void incDestroys(); void incCreates(); void incInvalidates(); long startGet(); void endGet(long start, boolean miss); void endGetForClient(long start, boolean miss); long endPut(long start, boolean isUpdate); void endPutAll(long start); void endRemoveAll(long start); void endQueryExecution(long executionTime); int getQueryExecutions(); void endQueryResultsHashCollisionProbe(long start); void incQueryResultsHashCollisions(); int getTxCommits(); int getTxCommitChanges(); long getTxCommitTime(); long getTxSuccessLifeTime(); int getTxFailures(); int getTxFailureChanges(); long getTxFailureTime(); long getTxFailedLifeTime(); int getTxRollbacks(); int getTxRollbackChanges(); long getTxRollbackTime(); long getTxRollbackLifeTime(); void incTxConflictCheckTime(long delta); void txSuccess(long opTime, long txLifeTime, int txChanges); void txFailure(long opTime, long txLifeTime, int txChanges); void txRollback(long opTime, long txLifeTime, int txChanges); void incDeltaFailedUpdates(); void endDeltaPrepared(long start); void incDeltasSent(); void incDeltaFullValuesSent(); void incDeltaFullValuesRequested(); boolean isClosed(); int getEventQueueSize(); void incEventQueueSize(int items); void incEventQueueThrottleCount(int items); void incEntryCount(int delta); void incRetries(); int getRetries(); void incDiskTasksWaiting(); void decDiskTasksWaiting(); void decDiskTasksWaiting(int count); void incEvictorJobsStarted(); void incEvictorJobsCompleted(); void incEvictorQueueSize(int delta); void incEvictWorkTime(long delta); PoolStatHelper getEventPoolHelper(); long getClearCount(); void incClearCount(); long getConflatedEventsCount(); void incConflatedEventsCount(); int getTombstoneCount(); void incTombstoneCount(int amount); int getTombstoneGCCount(); void incTombstoneGCCount(); int getClearTimeouts(); void incClearTimeouts(); void incPRQueryRetries(); QueueStatHelper getEvictionQueueStatHelper(); void incMetaDataRefreshCount(); void endImport(long entryCount, long start); void endExport(long entryCount, long start); long startHandlingNetsearch(); void endHandlingNetsearch(long start, boolean success); long getHandlingNetsearchesCompleted(); long getHandlingNetsearchesFailed();  }
@Test public void endRemoveAllIncrementsRemoveAll() { cachePerfStats.endRemoveAll(0); assertThat(statistics.getInt(removeAllsId)).isEqualTo(1); }