Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.template.cache
Class CmsElementCache  view CmsElementCache download CmsElementCache.java

java.lang.Object
  extended bycom.opencms.template.cache.CmsElementCache

public class CmsElementCache
extends java.lang.Object

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.


Field Summary
private  CmsElementLocator m_elementLocator
           
private  CmsUriLocator m_uriLocator
           
private  int m_variantCachesize
           
 
Constructor Summary
CmsElementCache()
           
CmsElementCache(int uriCachesize, int elementCachesize, int variantCachesize)
           
 
Method Summary
 byte[] callCanonicalRoot(com.opencms.file.CmsObject cms, java.util.Hashtable parameters)
           
 void cleanupCache(java.util.Vector changedResources, java.util.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.
 java.util.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
 

Field Detail

m_uriLocator

private CmsUriLocator m_uriLocator

m_elementLocator

private CmsElementLocator m_elementLocator

m_variantCachesize

private int m_variantCachesize
Constructor Detail

CmsElementCache

public CmsElementCache()

CmsElementCache

public CmsElementCache(int uriCachesize,
                       int elementCachesize,
                       int variantCachesize)
Method Detail

getUriLocator

public CmsUriLocator getUriLocator()

getElementLocator

public CmsElementLocator getElementLocator()

getVariantCachesize

public int getVariantCachesize()
returns the size of the variant cache for each element.


cleanupCache

public void cleanupCache(java.util.Vector changedResources,
                         java.util.Vector changedModuleRes)
Deletes all the content of the caches that depend on the changed resources after publishProject.


clearCache

public void clearCache()
Clears the uri and the element cache compleatly. and the extern dependencies.


printCacheInfo

public void printCacheInfo(int which)
prints the cache info in the errorlog.


getCacheInfo

public java.util.Vector getCacheInfo()
Gets the Information of max size and size for the uriCache and the element cache.


callCanonicalRoot

public byte[] callCanonicalRoot(com.opencms.file.CmsObject cms,
                                java.util.Hashtable parameters)
                         throws com.opencms.core.CmsException