@Test public void testRemoved() throws Exception { cacheUsageListener.notifyCacheElementRemoved(); final MetricName name = name("cache_delete").tag("cache_name", "cache").tag("reason", "remove").tier("All").build(); assertNotNull(registry.getMeters().get(name)); assertEquals(1, registry.getMeters().get(name).getCount()); }
@Override public void notifyCacheElementRemoved() { registry.meter(deleteRemovedMetricName).mark(); }
StagemonitorCacheUsageListener implements CacheUsageListener { @Override public void notifyCacheElementRemoved() { registry.meter(deleteRemovedMetricName).mark(); } }
StagemonitorCacheUsageListener implements CacheUsageListener { @Override public void notifyCacheElementRemoved() { registry.meter(deleteRemovedMetricName).mark(); } StagemonitorCacheUsageListener(String cacheName, Metric2Registry registry, boolean timeGet); }
StagemonitorCacheUsageListener implements CacheUsageListener { @Override public void notifyCacheElementRemoved() { registry.meter(deleteRemovedMetricName).mark(); } StagemonitorCacheUsageListener(String cacheName, Metric2Registry registry, boolean timeGet); @Override void notifyStatisticsEnabledChanged(boolean enableStatistics); @Override void notifyStatisticsCleared(); @Override void notifyCacheHitInMemory(); @Override void notifyCacheHitOffHeap(); @Override void notifyCacheHitOnDisk(); @Override void notifyCacheElementPut(); @Override void notifyCacheElementUpdated(); @Override void notifyCacheMissedWithNotFound(); @Override void notifyCacheMissedWithExpired(); Ratio getHitRatio1Min(); @Override void notifyCacheMissInMemory(); @Override void notifyCacheMissOffHeap(); @Override void notifyCacheMissOnDisk(); @Override @Deprecated void notifyTimeTakenForGet(long millis); @Override void notifyGetTimeNanos(long nanos); @Override void notifyCacheElementEvicted(); @Override void notifyCacheElementExpired(); @Override void notifyCacheElementRemoved(); @Override void notifyRemoveAll(); @Override void notifyStatisticsAccuracyChanged(int statisticsAccuracy); @Override void dispose(); @Override void notifyCacheSearch(long executeTime); @Override void notifyXaCommit(); @Override void notifyXaRollback(); }
StagemonitorCacheUsageListener implements CacheUsageListener { @Override public void notifyCacheElementRemoved() { registry.meter(deleteRemovedMetricName).mark(); } StagemonitorCacheUsageListener(String cacheName, Metric2Registry registry, boolean timeGet); @Override void notifyStatisticsEnabledChanged(boolean enableStatistics); @Override void notifyStatisticsCleared(); @Override void notifyCacheHitInMemory(); @Override void notifyCacheHitOffHeap(); @Override void notifyCacheHitOnDisk(); @Override void notifyCacheElementPut(); @Override void notifyCacheElementUpdated(); @Override void notifyCacheMissedWithNotFound(); @Override void notifyCacheMissedWithExpired(); Ratio getHitRatio1Min(); @Override void notifyCacheMissInMemory(); @Override void notifyCacheMissOffHeap(); @Override void notifyCacheMissOnDisk(); @Override @Deprecated void notifyTimeTakenForGet(long millis); @Override void notifyGetTimeNanos(long nanos); @Override void notifyCacheElementEvicted(); @Override void notifyCacheElementExpired(); @Override void notifyCacheElementRemoved(); @Override void notifyRemoveAll(); @Override void notifyStatisticsAccuracyChanged(int statisticsAccuracy); @Override void dispose(); @Override void notifyCacheSearch(long executeTime); @Override void notifyXaCommit(); @Override void notifyXaRollback();  }