test_class.declarator: registry = new Metric2Registry()
test_class.modifier: private final
test_class.original_string: private final Metric2Registry registry = new Metric2Registry();
test_class.type: Metric2Registry
test_class.var_name: registry
test_class.declarator: cacheUsageListener = new StagemonitorCacheUsageListener("cache", registry, true)
test_class.modifier: private
test_class.original_string: private StagemonitorCacheUsageListener cacheUsageListener = new StagemonitorCacheUsageListener("cache", registry, true);
test_class.type: StagemonitorCacheUsageListener
test_class.var_name: cacheUsageListener
test_class.file: stagemonitor-ehcache/src/test/java/org/stagemonitor/ehcache/StagemonitorCacheUsageListenerTest.java
test_class.identifier: StagemonitorCacheUsageListenerTest
test_case.body: @Test
  	public void testExpired() throws Exception {
  		cacheUsageListener.notifyCacheElementExpired();
  
  		final MetricName name = name("cache_delete").tag("cache_name", "cache").tag("reason", "expire").tier("All").build();
  		assertNotNull(registry.getMeters().get(name));
  		assertEquals(1, registry.getMeters().get(name).getCount());
  	}
test_case.class_method_signature: StagemonitorCacheUsageListenerTest.testExpired()
test_case.full_signature: @Test public void testExpired()
test_case.identifier: testExpired
test_case.invocations: notifyCacheElementExpired build tier tag tag name assertNotNull get getMeters assertEquals getCount get getMeters
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExpired()
focal_class.declarator: registry
focal_class.modifier: private final
focal_class.original_string: private final Metric2Registry registry;
focal_class.type: Metric2Registry
focal_class.var_name: registry
focal_class.declarator: timeGet
focal_class.modifier: private final
focal_class.original_string: private final boolean timeGet;
focal_class.type: boolean
focal_class.var_name: timeGet
focal_class.declarator: allCacheHitsMetricName
focal_class.modifier: private final
focal_class.original_string: private final MetricName allCacheHitsMetricName;
focal_class.type: MetricName
focal_class.var_name: allCacheHitsMetricName
focal_class.declarator: allCacheMissesMetricName
focal_class.modifier: private final
focal_class.original_string: private final MetricName allCacheMissesMetricName;
focal_class.type: MetricName
focal_class.var_name: allCacheMissesMetricName
focal_class.declarator: getMetricName
focal_class.modifier: private final
focal_class.original_string: private final MetricName getMetricName;
focal_class.type: MetricName
focal_class.var_name: getMetricName
focal_class.declarator: deleteEvictionMetricName
focal_class.modifier: private final
focal_class.original_string: private final MetricName deleteEvictionMetricName;
focal_class.type: MetricName
focal_class.var_name: deleteEvictionMetricName
focal_class.declarator: deleteExpireMetricName
focal_class.modifier: private final
focal_class.original_string: private final MetricName deleteExpireMetricName;
focal_class.type: MetricName
focal_class.var_name: deleteExpireMetricName
focal_class.declarator: deleteRemovedMetricName
focal_class.modifier: private final
focal_class.original_string: private final MetricName deleteRemovedMetricName;
focal_class.type: MetricName
focal_class.var_name: deleteRemovedMetricName
focal_class.file: stagemonitor-ehcache/src/main/java/org/stagemonitor/ehcache/StagemonitorCacheUsageListener.java
focal_class.identifier: StagemonitorCacheUsageListener
focal_class.interfaces: implements CacheUsageListener
focal_class.class_method_signature: StagemonitorCacheUsageListener.StagemonitorCacheUsageListener(String cacheName, Metric2Registry registry, boolean timeGet)
focal_class.full_signature: public  StagemonitorCacheUsageListener(String cacheName, Metric2Registry registry, boolean timeGet)
focal_class.identifier: StagemonitorCacheUsageListener
focal_class.modifiers: public
focal_class.parameters: (String cacheName, Metric2Registry registry, boolean timeGet)
focal_class.signature:  StagemonitorCacheUsageListener(String cacheName, Metric2Registry registry, boolean timeGet)
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyStatisticsEnabledChanged(boolean enableStatistics)
focal_class.full_signature: @Override public void notifyStatisticsEnabledChanged(boolean enableStatistics)
focal_class.identifier: notifyStatisticsEnabledChanged
focal_class.modifiers: @Override public
focal_class.parameters: (boolean enableStatistics)
focal_class.return: void
focal_class.signature: void notifyStatisticsEnabledChanged(boolean enableStatistics)
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyStatisticsCleared()
focal_class.full_signature: @Override public void notifyStatisticsCleared()
focal_class.identifier: notifyStatisticsCleared
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyStatisticsCleared()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheHitInMemory()
focal_class.full_signature: @Override public void notifyCacheHitInMemory()
focal_class.identifier: notifyCacheHitInMemory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheHitInMemory()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheHitOffHeap()
focal_class.full_signature: @Override public void notifyCacheHitOffHeap()
focal_class.identifier: notifyCacheHitOffHeap
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheHitOffHeap()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheHitOnDisk()
focal_class.full_signature: @Override public void notifyCacheHitOnDisk()
focal_class.identifier: notifyCacheHitOnDisk
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheHitOnDisk()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheElementPut()
focal_class.full_signature: @Override public void notifyCacheElementPut()
focal_class.identifier: notifyCacheElementPut
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheElementPut()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheElementUpdated()
focal_class.full_signature: @Override public void notifyCacheElementUpdated()
focal_class.identifier: notifyCacheElementUpdated
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheElementUpdated()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheMissedWithNotFound()
focal_class.full_signature: @Override public void notifyCacheMissedWithNotFound()
focal_class.identifier: notifyCacheMissedWithNotFound
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheMissedWithNotFound()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheMissedWithExpired()
focal_class.full_signature: @Override public void notifyCacheMissedWithExpired()
focal_class.identifier: notifyCacheMissedWithExpired
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheMissedWithExpired()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyAllCacheHits()
focal_class.full_signature: private void notifyAllCacheHits()
focal_class.identifier: notifyAllCacheHits
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyAllCacheHits()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyAllCacheMisses()
focal_class.full_signature: private void notifyAllCacheMisses()
focal_class.identifier: notifyAllCacheMisses
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyAllCacheMisses()
focal_class.class_method_signature: StagemonitorCacheUsageListener.getHitRatio1Min()
focal_class.full_signature: public Ratio getHitRatio1Min()
focal_class.identifier: getHitRatio1Min
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Ratio
focal_class.signature: Ratio getHitRatio1Min()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheMissInMemory()
focal_class.full_signature: @Override public void notifyCacheMissInMemory()
focal_class.identifier: notifyCacheMissInMemory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheMissInMemory()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheMissOffHeap()
focal_class.full_signature: @Override public void notifyCacheMissOffHeap()
focal_class.identifier: notifyCacheMissOffHeap
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheMissOffHeap()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheMissOnDisk()
focal_class.full_signature: @Override public void notifyCacheMissOnDisk()
focal_class.identifier: notifyCacheMissOnDisk
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheMissOnDisk()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyTimeTakenForGet(long millis)
focal_class.full_signature: @Override @Deprecated public void notifyTimeTakenForGet(long millis)
focal_class.identifier: notifyTimeTakenForGet
focal_class.modifiers: @Override @Deprecated public
focal_class.parameters: (long millis)
focal_class.return: void
focal_class.signature: void notifyTimeTakenForGet(long millis)
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyGetTimeNanos(long nanos)
focal_class.full_signature: @Override public void notifyGetTimeNanos(long nanos)
focal_class.identifier: notifyGetTimeNanos
focal_class.modifiers: @Override public
focal_class.parameters: (long nanos)
focal_class.return: void
focal_class.signature: void notifyGetTimeNanos(long nanos)
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheElementEvicted()
focal_class.full_signature: @Override public void notifyCacheElementEvicted()
focal_class.identifier: notifyCacheElementEvicted
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheElementEvicted()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheElementExpired()
focal_class.full_signature: @Override public void notifyCacheElementExpired()
focal_class.identifier: notifyCacheElementExpired
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheElementExpired()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheElementRemoved()
focal_class.full_signature: @Override public void notifyCacheElementRemoved()
focal_class.identifier: notifyCacheElementRemoved
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyCacheElementRemoved()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyRemoveAll()
focal_class.full_signature: @Override public void notifyRemoveAll()
focal_class.identifier: notifyRemoveAll
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyRemoveAll()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyStatisticsAccuracyChanged(int statisticsAccuracy)
focal_class.full_signature: @Override public void notifyStatisticsAccuracyChanged(int statisticsAccuracy)
focal_class.identifier: notifyStatisticsAccuracyChanged
focal_class.modifiers: @Override public
focal_class.parameters: (int statisticsAccuracy)
focal_class.return: void
focal_class.signature: void notifyStatisticsAccuracyChanged(int statisticsAccuracy)
focal_class.class_method_signature: StagemonitorCacheUsageListener.dispose()
focal_class.full_signature: @Override public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyCacheSearch(long executeTime)
focal_class.full_signature: @Override public void notifyCacheSearch(long executeTime)
focal_class.identifier: notifyCacheSearch
focal_class.modifiers: @Override public
focal_class.parameters: (long executeTime)
focal_class.return: void
focal_class.signature: void notifyCacheSearch(long executeTime)
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyXaCommit()
focal_class.full_signature: @Override public void notifyXaCommit()
focal_class.identifier: notifyXaCommit
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyXaCommit()
focal_class.class_method_signature: StagemonitorCacheUsageListener.notifyXaRollback()
focal_class.full_signature: @Override public void notifyXaRollback()
focal_class.identifier: notifyXaRollback
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void notifyXaRollback()
focal_method.body: @Override
  	public void notifyCacheElementExpired() {
  		registry.meter(deleteExpireMetricName).mark();
  	}
focal_method.class_method_signature: StagemonitorCacheUsageListener.notifyCacheElementExpired()
focal_method.full_signature: @Override public void notifyCacheElementExpired()
focal_method.identifier: notifyCacheElementExpired
focal_method.invocations: mark meter
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void notifyCacheElementExpired()