com.ibm.wsspi.cache
Class Cache
java.lang.Object
com.ibm.wsspi.cache.Cache
public class Cache
- extends java.lang.Object
This is the underlying cache mechanism that is
used by the CacheMonitor. It contains the methods used to inspect
and manage the current state of the cache.
Constructor Summary |
Cache(com.ibm.ws.cache.Cache ci)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cache
public Cache(com.ibm.ws.cache.Cache ci)
refreshEntry
public void refreshEntry(CacheEntry ce)
getSwapToDisk
public boolean getSwapToDisk()
getEntryDisk
public CacheEntry getEntryDisk(java.lang.Object cacheId)
clearDisk
public void clearDisk()
getIdsByRangeDisk
public java.util.Collection getIdsByRangeDisk(int index,
int length)
getTemplatesByRangeDisk
public java.util.Collection getTemplatesByRangeDisk(int index,
int length)
getCacheStatisticsListener
public CacheStatisticsListener getCacheStatisticsListener()
getEntry
public CacheEntry getEntry(java.lang.Object cacheId)
invalidateById
public void invalidateById(java.lang.String id,
boolean waitOnInvalidation)
invalidateByTemplate
public void invalidateByTemplate(java.lang.String template,
boolean waitOnInvalidation)
clear
public void clear()
getAllIds
public java.util.Enumeration getAllIds()
getMaxNumberCacheEntries
public int getMaxNumberCacheEntries()
getNumberCacheEntries
public int getNumberCacheEntries()
getDefaultPriority
public int getDefaultPriority()
getAllDependencyIds
public java.util.Collection getAllDependencyIds()
getCacheIdsByDependency
public java.util.Collection getCacheIdsByDependency(java.lang.String dependency)
getCacheIdsByTemplate
public java.util.Collection getCacheIdsByTemplate(java.lang.String template)
getTemplatesSizeDisk
public int getTemplatesSizeDisk()
getTemplateValueDisk
public java.util.Collection getTemplateValueDisk(java.lang.String template)
getIdsSizeDisk
public int getIdsSizeDisk()
getDepIdsSizeDisk
public int getDepIdsSizeDisk()
getDepIdsByRangeDisk
public java.util.Collection getDepIdsByRangeDisk(int index,
int length)
getDepIdValueDisk
public java.util.Collection getDepIdValueDisk(java.lang.Object depId)
getDiskCacheSizeLimit
public long getDiskCacheSizeLimit()
getDiskCacheSizeInGBLimit
public long getDiskCacheSizeInGBLimit()
getDiskCacheEntrySizeInMBLimit
public long getDiskCacheEntrySizeInMBLimit()
getFlushToDiskOnStop
public boolean getFlushToDiskOnStop()
getDiskCachePerformanceLevel
public int getDiskCachePerformanceLevel()
getCleanupFrequency
public long getCleanupFrequency()
getDelayOffload
public boolean getDelayOffload()
getDelayOffloadEntriesLimit
public long getDelayOffloadEntriesLimit()
getDelayOffloadDepIdBuckets
public long getDelayOffloadDepIdBuckets()
getDelayOffloadTemplateBuckets
public long getDelayOffloadTemplateBuckets()
getDiskCacheEvictionPolicy
public int getDiskCacheEvictionPolicy()
getDiskCacheHighThreshold
public int getDiskCacheHighThreshold()
getDiskCacheLowThreshold
public int getDiskCacheLowThreshold()
getDiskCacheSizeInMBs
public float getDiskCacheSizeInMBs()