org.mycore.common
Class MCRCacheManager

java.lang.Object
  extended by org.mycore.common.MCRCacheManager
All Implemented Interfaces:
MCRCacheManagerMBean

public class MCRCacheManager
extends Object
implements MCRCacheManagerMBean

Author:
Thomas Scheffler (yagee) Need to insert some things here

Constructor Summary
MCRCacheManager(MCRCache cache)
           
 
Method Summary
 void clear()
           
 int getCapacity()
           
 double getFillRate()
           
 double getHitRate()
           
 long getHits()
           
 String getLeastRecentlyUsedElement()
           
 String getMostRecentlyUsedElement()
           
 long getRequests()
           
 int getSize()
           
 void setCapacity(int capacity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRCacheManager

public MCRCacheManager(MCRCache cache)
Method Detail

getCapacity

public int getCapacity()
Specified by:
getCapacity in interface MCRCacheManagerMBean

getFillRate

public double getFillRate()
Specified by:
getFillRate in interface MCRCacheManagerMBean

getHitRate

public double getHitRate()
Specified by:
getHitRate in interface MCRCacheManagerMBean

getHits

public long getHits()
Specified by:
getHits in interface MCRCacheManagerMBean

getRequests

public long getRequests()
Specified by:
getRequests in interface MCRCacheManagerMBean

getSize

public int getSize()
Specified by:
getSize in interface MCRCacheManagerMBean

setCapacity

public void setCapacity(int capacity)
Specified by:
setCapacity in interface MCRCacheManagerMBean

clear

public void clear()
Specified by:
clear in interface MCRCacheManagerMBean

getLeastRecentlyUsedElement

public String getLeastRecentlyUsedElement()
Specified by:
getLeastRecentlyUsedElement in interface MCRCacheManagerMBean

getMostRecentlyUsedElement

public String getMostRecentlyUsedElement()
Specified by:
getMostRecentlyUsedElement in interface MCRCacheManagerMBean