com.ibm.wsspi.cache
Class Cache

java.lang.Object
  extended by 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.intf.DCache ci)
           
 
Method Summary
 void clear()
           
 void clearDisk()
           
 java.util.Collection getAllDependencyIds()
           
 java.util.Enumeration getAllIds()
           
 java.util.Collection getCacheIdsByDependency(java.lang.String dependency)
           
 java.util.Collection getCacheIdsByTemplate(java.lang.String template)
           
 CacheStatisticsListener getCacheStatisticsListener()
           
 long getCleanupFrequency()
           
 int getDefaultPriority()
           
 boolean getDelayOffload()
           
 long getDelayOffloadDepIdBuckets()
           
 long getDelayOffloadEntriesLimit()
           
 long getDelayOffloadTemplateBuckets()
           
 java.util.Collection getDepIdsByRangeDisk(int index, int length)
           
 int getDepIdsSizeDisk()
           
 java.util.Collection getDepIdValueDisk(java.lang.Object depId)
           
 long getDiskCacheEntrySizeInMBLimit()
           
 int getDiskCacheEvictionPolicy()
           
 int getDiskCacheHighThreshold()
           
 int getDiskCacheLowThreshold()
           
 int getDiskCachePerformanceLevel()
           
 long getDiskCacheSizeInGBLimit()
           
 float getDiskCacheSizeInMBs()
           
 long getDiskCacheSizeLimit()
           
 CacheEntry getEntry(java.lang.Object cacheId)
           
 CacheEntry getEntryDisk(java.lang.Object cacheId)
           
 boolean getFlushToDiskOnStop()
           
 java.util.Collection getIdsByRangeDisk(int index, int length)
           
 int getIdsSizeDisk()
           
 int getMaxNumberCacheEntries()
           
 int getNumberCacheEntries()
           
 boolean getSwapToDisk()
           
 java.util.Collection getTemplatesByRangeDisk(int index, int length)
           
 int getTemplatesSizeDisk()
           
 java.util.Collection getTemplateValueDisk(java.lang.String template)
           
 void invalidateById(java.lang.String id, boolean waitOnInvalidation)
           
 void invalidateByTemplate(java.lang.String template, boolean waitOnInvalidation)
           
 void refreshEntry(CacheEntry ce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cache

public Cache(com.ibm.ws.cache.intf.DCache ci)
Method Detail

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()