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, Contextualizable, LogEnabled, Parameterizable, Store, ThreadSafe

public final class FilesystemStore
extends AbstractFilesystemStore
implements Contextualizable, Parameterizable

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

Version:
CVS $Id: FilesystemStore.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Carsten Ziegeler, Vadim Gritsenko

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 contextualize(Context context)
           
 void parameterize(Parameters params)
           
 
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
 
Methods inherited from interface org.apache.excalibur.store.Store
clear, containsKey, get, keys, remove, size, store
 

Field Detail

workDir

protected File workDir

cacheDir

protected File cacheDir
Constructor Detail

FilesystemStore

public FilesystemStore()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

parameterize

public void parameterize(Parameters params)
                  throws ParameterException
Specified by:
parameterize in interface Parameterizable
Throws:
ParameterException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.