com.xpn.xwiki.cache.impl
Class OSCacheService

java.lang.Object
  extended by com.xpn.xwiki.cache.impl.OSCacheService
All Implemented Interfaces:
XWikiCacheService, java.lang.Runnable

public class OSCacheService
extends java.lang.Object
implements XWikiCacheService, java.lang.Runnable


Field Summary
private static int cacheCount
           
private  java.util.List cacheList
           
private  java.util.Properties cacheProperties
           
private static java.lang.String LOCAL_PROPS_FILENAME
           
private  java.util.Properties localCacheProperties
           
private static org.apache.commons.logging.Log log
           
private static java.lang.String PROPS_FILENAME
           
private static java.lang.String PROPS_PATH
           
private  XWiki xwiki
           
 
Constructor Summary
OSCacheService()
           
 
Method Summary
 void init(XWiki xwiki)
          Initializes the service
private  void initCache(OSCacheCache cc)
           
private  java.util.Properties loadProps(java.lang.String propertiesFilename)
           
 XWikiCache newCache()
           
 XWikiCache newCache(int capacity)
           
 XWikiCache newCache(java.util.Properties props)
           
 XWikiCache newLocalCache()
           
 XWikiCache newLocalCache(int capacity)
           
 void run()
          The cache watcher thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

PROPS_FILENAME

private static final java.lang.String PROPS_FILENAME
See Also:
Constant Field Values

LOCAL_PROPS_FILENAME

private static final java.lang.String LOCAL_PROPS_FILENAME
See Also:
Constant Field Values

PROPS_PATH

private static final java.lang.String PROPS_PATH
See Also:
Constant Field Values

xwiki

private XWiki xwiki

cacheProperties

private java.util.Properties cacheProperties

localCacheProperties

private java.util.Properties localCacheProperties

cacheCount

private static int cacheCount

cacheList

private java.util.List cacheList
Constructor Detail

OSCacheService

public OSCacheService()
Method Detail

init

public void init(XWiki xwiki)
Description copied from interface: XWikiCacheService
Initializes the service

Specified by:
init in interface XWikiCacheService

newLocalCache

public XWikiCache newLocalCache()
Specified by:
newLocalCache in interface XWikiCacheService

newLocalCache

public XWikiCache newLocalCache(int capacity)
Specified by:
newLocalCache in interface XWikiCacheService

newCache

public XWikiCache newCache(java.util.Properties props)

newCache

public XWikiCache newCache()
Specified by:
newCache in interface XWikiCacheService

newCache

public XWikiCache newCache(int capacity)
Specified by:
newCache in interface XWikiCacheService

initCache

private void initCache(OSCacheCache cc)

loadProps

private java.util.Properties loadProps(java.lang.String propertiesFilename)

run

public void run()
The cache watcher thread

Specified by:
run in interface java.lang.Runnable


Copyright 2003 Ludovic Dubost