jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject new persistence manager for testing and new configuration
Date Fri, 05 Nov 2004 18:12:17 GMT

i committed a new *very* simple persistence manager for testing purposes;
it stores the item states as byte[]'s in a hash map and optionally writes
it to disk on shutdown.

a sample configuration can be found here: /applications/test/repository.xml

i also added a new dependency in the project.xml:
cqfs-jackrabbit and cqfs are optional runtime dependencies 
cqfs is an alternative virtual FileSystem implementation 
(a unix-like filesystem in a file).

using the CQFileSystem instead of the LocalFileSystem provides
a significant performance gain.

here's a sample repository.xml (most comments removed 
for better readability):

    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
    <Workspace name="${wsp.name}">
            use the CQFileSystem in this workspace
        <FileSystem class="com.day.jackrabbit.fs.cq.CQFileSystem">
            <param name="path" value="${wsp.home}/wspStore.dat"/>
            <param name="autoRepair" value="false"/>
            <param name="blockSize" value="128"/>
            <param name="autoSync" value="false"/>
            persistence manager of the workspace:
            class: FQN of class implementing PersistenceManager interface
            Search index and the file system it uses.
                <param name="path" value="${wsp.home}/index"/>


View raw message