|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.cofax.CofaxCache
Provides HTML response caching capabilies for CofaxServlet
Field Summary | |
java.lang.String |
lastError
|
Constructor Summary | |
CofaxCache(int maxUrlsToCount,
int maxUrlsToCache,
int refreshCacheInterval)
Initializes variables. |
Method Summary | |
boolean |
addPageToCache(java.lang.String id,
CofaxPage page)
Adds an item to cache and keys it by it's ID. |
void |
clear()
Clears the cache of items and hit counts. |
long |
getCacheHits()
|
long |
getCacheRequests()
|
java.util.Date |
getClearedTimeTotal()
|
int |
getHitCount(java.lang.String id)
Gets the hit count of a page in cache. |
boolean |
getIsMaxStoreReached()
|
boolean |
getIsMaxTrackReached()
|
int |
getMaxStore()
|
java.util.Date |
getMaxStoreReached()
|
int |
getMaxTrack()
|
java.util.Date |
getMaxTrackReached()
|
int |
getMaxTrackTurnOver()
|
CofaxPage |
getPage(java.lang.String id)
Gets a page from cache. |
long |
getRefreshInterval()
|
int |
getStoredCount()
|
java.util.HashMap |
getStoreHash()
|
int |
getTrackedCount()
|
int |
getTrackedTotal()
Gets the total number of items counted. |
java.util.HashMap |
getTrackHash()
|
boolean |
incrementHitCount(java.lang.String id)
Increments the hit count of an item in cache. |
boolean |
isPageCached(java.lang.String id)
Checks to see if an item is in cached. |
java.util.ArrayList |
removeByPartialUrl(java.lang.String partialUrl)
Removes an item from cache based upon a partial ID. |
boolean |
removeFromCache(java.lang.String id)
Removes an item from cache. |
boolean |
shouldPageBeCached(java.lang.String id)
Determines if an item should be cached. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String lastError
Constructor Detail |
public CofaxCache(int maxUrlsToCount, int maxUrlsToCache, int refreshCacheInterval)
Method Detail |
public int getStoredCount()
public int getTrackedCount()
public int getMaxTrack()
public int getMaxStore()
public long getRefreshInterval()
public java.util.HashMap getStoreHash()
public java.util.HashMap getTrackHash()
public java.util.Date getClearedTimeTotal()
public long getCacheRequests()
public long getCacheHits()
public java.util.Date getMaxTrackReached()
public java.util.Date getMaxStoreReached()
public boolean getIsMaxTrackReached()
public boolean getIsMaxStoreReached()
public int getMaxTrackTurnOver()
public void clear()
public boolean isPageCached(java.lang.String id)
public boolean removeFromCache(java.lang.String id)
public boolean incrementHitCount(java.lang.String id)
public int getHitCount(java.lang.String id)
public boolean addPageToCache(java.lang.String id, CofaxPage page)
public java.util.ArrayList removeByPartialUrl(java.lang.String partialUrl)
public CofaxPage getPage(java.lang.String id)
public boolean shouldPageBeCached(java.lang.String id)
public int getTrackedTotal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |