org.apache.cocoon.components.store.impl
Class FilesystemStore

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.excalibur.store.impl.AbstractReadWriteStore
          extended byorg.apache.excalibur.store.impl.AbstractFilesystemStore
              extended byorg.apache.cocoon.components.store.impl.FilesystemStore
All Implemented Interfaces:
Component, LogEnabled, Store, ThreadSafe

public final class FilesystemStore
extends AbstractFilesystemStore

Stores objects on the filesystem: String objects as text files, all other objects are serialized.

Version:
$Id: FilesystemStore.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  File cacheDir
           
protected  File workDir
           
 
Fields inherited from class org.apache.excalibur.store.impl.AbstractFilesystemStore
m_directoryFile, m_directoryPath
 
Fields inherited from class org.apache.excalibur.store.impl.AbstractReadWriteStore
lock
 
Fields inherited from interface org.apache.excalibur.store.Store
PERSISTENT_STORE, ROLE, TRANSIENT_STORE
 
Constructor Summary
FilesystemStore()
           
 
Method Summary
 void init()
           
 void setSettings(org.apache.cocoon.configuration.Settings settings)
           
 void setUseCacheDirectory(boolean useCacheDirectory)
           
 void setUseWorkDirectory(boolean useWorkDirectory)
           
 
Methods inherited from class org.apache.excalibur.store.impl.AbstractFilesystemStore
addKeys, countKeys, decode, deserializeObject, deserializeString, doClear, doContainsKey, doFree, doGet, doGetKeys, doGetSize, doRemove, doStore, encode, fileFromKey, free, getDirectoryPath, getFullFilename, getObject, getString, serializeObject, serializeString, setDirectory, setDirectory
 
Methods inherited from class org.apache.excalibur.store.impl.AbstractReadWriteStore
clear, containsKey, get, getChildInstrumentables, getInstrumentableName, getInstruments, keys, remove, setInstrumentableName, size, store
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workDir

protected File workDir

cacheDir

protected File cacheDir
Constructor Detail

FilesystemStore

public FilesystemStore()
Method Detail

setSettings

public void setSettings(org.apache.cocoon.configuration.Settings settings)
Parameters:
settings -

setUseCacheDirectory

public void setUseCacheDirectory(boolean useCacheDirectory)
Parameters:
useCacheDirectory -

setUseWorkDirectory

public void setUseWorkDirectory(boolean useWorkDirectory)
Parameters:
useWorkDirectory -

init

public void init()
          throws Exception
Throws:
Exception


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.