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

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

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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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-2010 The Apache Software Foundation. All Rights Reserved.