org.apache.excalibur.store.impl
Class JispFilesystemStore

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.excalibur.store.impl.AbstractReadWriteStore
          extended byorg.apache.excalibur.store.impl.AbstractJispFilesystemStore
              extended byorg.apache.excalibur.store.impl.JispFilesystemStore
All Implemented Interfaces:
Component, Disposable, LogEnabled, Parameterizable, Store, ThreadSafe

public class JispFilesystemStore
extends AbstractJispFilesystemStore
implements Store, ThreadSafe, Parameterizable, Disposable

This store is based on the Jisp library (http://www.coyotegulch.com/jisp/index.html). This store uses B-Tree indexes to access variable-length serialized data stored in files.

Version:
CVS $Id: JispFilesystemStore.java,v 1.4 2004/02/28 11:47:31 cziegeler Exp $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from class org.apache.excalibur.store.impl.AbstractJispFilesystemStore
m_Database, m_directoryFile, m_Index
 
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
JispFilesystemStore()
           
 
Method Summary
 void dispose()
          The dispose operation is called at the end of a components lifecycle.
 void parameterize(Parameters params)
          Configure the Component.
A few options can be used directory - The directory to store the two files belowe data-file = the name of the data file (Default: store.dat) index-file = the name of the index file (Default: store.idx) order = The page size of the B-Tree
 
Methods inherited from class org.apache.excalibur.store.impl.AbstractJispFilesystemStore
doClear, doContainsKey, doFree, doGet, doGetKeys, doGetSize, doRemove, doStore, free, getNullKey, setDirectory, wrapKeyObject
 
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, free, get, keys, remove, size, store
 

Constructor Detail

JispFilesystemStore

public JispFilesystemStore()
Method Detail

parameterize

public void parameterize(Parameters params)
                  throws ParameterException
Configure the Component.
A few options can be used

Specified by:
parameterize in interface Parameterizable
Parameters:
params - the configuration paramters
Throws:
ParameterException

dispose

public void dispose()
Description copied from interface: Disposable
The dispose operation is called at the end of a components lifecycle. This method will be called after Startable.stop() method (if implemented by component). Components use this method to release and destroy any resources that the Component owns.

Specified by:
dispose in interface Disposable


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.