org.kuali.rice.kns.util.cache
Class OSCacheMonitor

java.lang.Object
  extended by org.kuali.rice.kns.util.cache.OSCacheMonitor
All Implemented Interfaces:
com.opensymphony.oscache.base.events.CacheEntryEventListener, com.opensymphony.oscache.base.events.CacheEventListener, EventListener
Direct Known Subclasses:
MethodResultsCacheMonitor, MethodResultsCacheNoCopyMonitor, PersistenceCacheMonitor

public abstract class OSCacheMonitor
extends Object
implements com.opensymphony.oscache.base.events.CacheEntryEventListener

Monitor entry-related events for a cache.


Field Summary
private  Set entries
           
private static org.apache.commons.logging.Log LOG
           
private  String purpose
           
 
Constructor Summary
OSCacheMonitor(String purpose)
          Constructs a OSCacheMonitor with the given purpose
 
Method Summary
 void cacheEntryAdded(com.opensymphony.oscache.base.events.CacheEntryEvent event)
           
 void cacheEntryFlushed(com.opensymphony.oscache.base.events.CacheEntryEvent event)
           
 void cacheEntryRemoved(com.opensymphony.oscache.base.events.CacheEntryEvent event)
           
 void cacheEntryUpdated(com.opensymphony.oscache.base.events.CacheEntryEvent event)
           
 void cacheFlushed(com.opensymphony.oscache.base.events.CachewideEvent event)
           
 void cacheGroupFlushed(com.opensymphony.oscache.base.events.CacheGroupEvent event)
           
 void cachePatternFlushed(com.opensymphony.oscache.base.events.CachePatternEvent event)
           
private  void logEntryEvent(String verb, com.opensymphony.oscache.base.events.CacheEntryEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

purpose

private final String purpose

entries

private final Set entries
Constructor Detail

OSCacheMonitor

public OSCacheMonitor(String purpose)
Constructs a OSCacheMonitor with the given purpose

Parameters:
purpose -
Method Detail

cacheEntryAdded

public void cacheEntryAdded(com.opensymphony.oscache.base.events.CacheEntryEvent event)
Specified by:
cacheEntryAdded in interface com.opensymphony.oscache.base.events.CacheEntryEventListener

cacheEntryUpdated

public void cacheEntryUpdated(com.opensymphony.oscache.base.events.CacheEntryEvent event)
Specified by:
cacheEntryUpdated in interface com.opensymphony.oscache.base.events.CacheEntryEventListener

cacheEntryFlushed

public void cacheEntryFlushed(com.opensymphony.oscache.base.events.CacheEntryEvent event)
Specified by:
cacheEntryFlushed in interface com.opensymphony.oscache.base.events.CacheEntryEventListener

cacheEntryRemoved

public void cacheEntryRemoved(com.opensymphony.oscache.base.events.CacheEntryEvent event)
Specified by:
cacheEntryRemoved in interface com.opensymphony.oscache.base.events.CacheEntryEventListener

cacheFlushed

public void cacheFlushed(com.opensymphony.oscache.base.events.CachewideEvent event)
Specified by:
cacheFlushed in interface com.opensymphony.oscache.base.events.CacheEntryEventListener

cacheGroupFlushed

public void cacheGroupFlushed(com.opensymphony.oscache.base.events.CacheGroupEvent event)
Specified by:
cacheGroupFlushed in interface com.opensymphony.oscache.base.events.CacheEntryEventListener

cachePatternFlushed

public void cachePatternFlushed(com.opensymphony.oscache.base.events.CachePatternEvent event)
Specified by:
cachePatternFlushed in interface com.opensymphony.oscache.base.events.CacheEntryEventListener

logEntryEvent

private void logEntryEvent(String verb,
                           com.opensymphony.oscache.base.events.CacheEntryEvent event)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.