|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.template.cache.CmsElementCache
This is the starting class for OpenCms element cache. Element cache was implemented for performance issues. The idea is to create a flat hirarchie of elements that can be accessed fast and efficient for the frontend users in the online project. On publishing-time the data in the element cache area will be created or updated. All inefficiant XML-files are changed to the efficient element cache data structure. For createing the content no XML-parsing and DOM-accessing is neccessairy.
| Constructor Summary | |
CmsElementCache()
|
|
CmsElementCache(int uriCachesize,
int elementCachesize,
int variantCachesize)
|
|
| Method Summary | |
byte[] |
callCanonicalRoot(CmsObject cms,
Hashtable parameters)
|
void |
cleanupCache(Vector changedResources,
Vector changedModuleRes)
Deletes all the content of the caches that depend on the changed resources after publishProject. |
void |
clearCache()
Clears the uri and the element cache compleatly. |
Vector |
getCacheInfo()
Gets the Information of max size and size for the uriCache and the element cache. |
CmsElementLocator |
getElementLocator()
|
CmsUriLocator |
getUriLocator()
|
int |
getVariantCachesize()
returns the size of the variant cache for each element. |
void |
printCacheInfo(int which)
prints the cache info in the errorlog. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsElementCache()
public CmsElementCache(int uriCachesize,
int elementCachesize,
int variantCachesize)
| Method Detail |
public CmsUriLocator getUriLocator()
public CmsElementLocator getElementLocator()
public int getVariantCachesize()
public void cleanupCache(Vector changedResources,
Vector changedModuleRes)
changedResources - A vector (of Strings) with the resources that have
changed during publishing.public void clearCache()
public void printCacheInfo(int which)
public Vector getCacheInfo()
public byte[] callCanonicalRoot(CmsObject cms,
Hashtable parameters)
throws CmsException
CmsException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||