|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.cache.CmsVfsCache
org.opencms.xml.containerpage.CmsADECache
public final class CmsADECache
Cache object instance for simultaneously cache online and offline items.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
CmsADECache(CmsMemoryMonitor memMonitor,
CmsADECacheSettings cacheSettings)
Initializes the cache. |
|
| Method Summary | |
|---|---|
protected void |
flush(boolean online)
Flushes the caches. |
void |
flushContainerPages(boolean online)
Flushes the container pages cache. |
void |
flushGroupContainers(boolean online)
Flushes the group containers cache. |
CmsXmlContainerPage |
getCacheContainerPage(String key,
boolean online)
Returns the cached container page under the given key and for the given project. |
CmsXmlGroupContainer |
getCacheGroupContainer(String key,
boolean online)
Returns the cached group container under the given key and for the given project. |
String |
getCacheKey(CmsUUID structureId,
boolean keepEncoding)
Returns the cache key for the given parameters. |
void |
setCacheContainerPage(String key,
CmsXmlContainerPage containerPage,
boolean online)
Caches the given container page under the given key and for the given project. |
void |
setCacheGroupContainer(String key,
CmsXmlGroupContainer groupContainer,
boolean online)
Caches the given group container under the given key and for the given project. |
void |
uncacheContainerPage(CmsUUID structureId,
boolean online)
Removes the container page identified by its structure id from the cache. |
void |
uncacheGroupContainer(CmsUUID structureId,
boolean online)
Removes the group container identified by its structure id from the cache. |
protected void |
uncacheResource(CmsResource resource)
Removes a cached resource from the cache. |
| Methods inherited from class org.opencms.cache.CmsVfsCache |
|---|
cmsEvent, registerEventListener, shutdown, uncacheResources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsADECache(CmsMemoryMonitor memMonitor,
CmsADECacheSettings cacheSettings)
memMonitor - the memory monitor instancecacheSettings - the system cache settingsOpenCmsCore.initConfiguration(org.opencms.configuration.CmsParameterConfiguration)| Method Detail |
|---|
public void flushContainerPages(boolean online)
online - if to flush the online or offline cachepublic void flushGroupContainers(boolean online)
online - if to flush the online or offline cache
public CmsXmlContainerPage getCacheContainerPage(String key,
boolean online)
key - the cache keyonline - if cached in online or offline project
null if not found
public CmsXmlGroupContainer getCacheGroupContainer(String key,
boolean online)
key - the cache keyonline - if cached in online or offline project
null if not found
public String getCacheKey(CmsUUID structureId,
boolean keepEncoding)
structureId - the container page's structure idkeepEncoding - if to keep the encoding while unmarshalling
public void setCacheContainerPage(String key,
CmsXmlContainerPage containerPage,
boolean online)
key - the cache keycontainerPage - the object to cacheonline - if to cache in online or offline project
public void setCacheGroupContainer(String key,
CmsXmlGroupContainer groupContainer,
boolean online)
key - the cache keygroupContainer - the object to cacheonline - if to cache in online or offline project
public void uncacheContainerPage(CmsUUID structureId,
boolean online)
structureId - the container page's structure idonline - if online or offline
public void uncacheGroupContainer(CmsUUID structureId,
boolean online)
structureId - the group container's structure idonline - if online or offlineprotected void flush(boolean online)
CmsVfsCache
flush in class CmsVfsCacheonline - if to flush the online or offline cachesCmsVfsCache.flush(boolean)protected void uncacheResource(CmsResource resource)
CmsVfsCache
uncacheResource in class CmsVfsCacheresource - the resourceCmsVfsCache.uncacheResource(org.opencms.file.CmsResource)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||