pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.configuration
Class PoorMansCacheConfiguration

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
      extended by org.torweg.pulse.configuration.PoorMansCacheConfiguration
All Implemented Interfaces:
java.io.Serializable, ConfigBean

public final class PoorMansCacheConfiguration
extends AbstractConfigBean

configuration for the PoorMansCache, configuring the VFS cache.

Version:
$Revision: 1387 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
PoorMansCacheConfiguration()
           
 
Method Summary
 long getMaxCacheSize()
          returns the maximum size of the VFS cache.
 long getMaxFileSize()
          returns the maximum file size, for virtual files to get cached.
 TimeSpan getMaxInactive()
          returns the maximum time of files to be inactive in the cache.
 void init(org.jdom.Element conf)
          initialises the config bean from JDOM.
 boolean isVirtualFileCacheEnabled()
          returns whether the VFS cache is enabled.
 
Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean
buildClass, buildInstance, lastModified, setLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoorMansCacheConfiguration

public PoorMansCacheConfiguration()
Method Detail

init

public void init(org.jdom.Element conf)
initialises the config bean from JDOM.

Parameters:
conf - the configuration JDOM
See Also:
ConfigBean.init(org.jdom.Element)

isVirtualFileCacheEnabled

public boolean isVirtualFileCacheEnabled()
returns whether the VFS cache is enabled.

Returns:
true, if and only if the VFS cache is enabled. Otherwise false.

getMaxFileSize

public long getMaxFileSize()
returns the maximum file size, for virtual files to get cached.

Returns:
the maximum file size

getMaxCacheSize

public long getMaxCacheSize()
returns the maximum size of the VFS cache.

Returns:
the maximum size of the VFS cache

getMaxInactive

public TimeSpan getMaxInactive()
returns the maximum time of files to be inactive in the cache.

Returns:
the maximum time of files to be inactive