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
folks,

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):

<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    </FileSystem>
    <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"/>
        </FileSystem>
        <!--
            persistence manager of the workspace:
            class: FQN of class implementing PersistenceManager interface
        -->
        <PersistenceManager
class="org.apache.jackrabbit.core.state.obj.ObjectPersistenceManager"/>
        <!--
            Search index and the file system it uses.
        -->
        <SearchIndex>
            <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
                <param name="path" value="${wsp.home}/index"/>
            </FileSystem>
        </SearchIndex>
    </Workspace>
</Repository>


cheers
stefan

Mime
View raw message