jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r126391 - /incubator/jackrabbit/trunk/applications/test/repository.xml
Date Tue, 25 Jan 2005 16:46:05 GMT
Author: tripod
Date: Tue Jan 25 08:46:03 2005
New Revision: 126391

URL: http://svn.apache.org/viewcvs?view=rev&rev=126391
Log:
- adding versioning configuratuin

Modified:
   incubator/jackrabbit/trunk/applications/test/repository.xml

Modified: incubator/jackrabbit/trunk/applications/test/repository.xml
Url: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/applications/test/repository.xml?view=diff&rev=126391&p1=incubator/jackrabbit/trunk/applications/test/repository.xml&r1=126390&p2=incubator/jackrabbit/trunk/applications/test/repository.xml&r2=126391
==============================================================================
--- incubator/jackrabbit/trunk/applications/test/repository.xml	(original)
+++ incubator/jackrabbit/trunk/applications/test/repository.xml	Tue Jan 25 08:46:03 2005
@@ -22,7 +22,7 @@
             no workspace yet and for creating additional workspaces through
             the api
     -->
-    <!ELEMENT Repository (FileSystem,Workspaces,Workspace)>
+    <!ELEMENT Repository (FileSystem,Workspaces,Workspace,Versioning)>
 
     <!--
         a virtual file system
@@ -78,6 +78,15 @@
     <!ELEMENT SearchIndex (param*,FileSystem)>
     <!ATTLIST SearchIndex
       class CDATA #REQUIRED>
+
+    <!--
+    the Versioning element specifies the location and persistence manager
+    that is used to store versions
+    -->
+    <!ELEMENT Versioning (FileSystem, PersistenceManager)>
+    <!ATTLIST Versioning
+      rootPath CDATA #REQUIRED
+    >
 ]>
 <Repository>
     <!--
@@ -126,4 +135,31 @@
             </FileSystem>
         </SearchIndex>
     </Workspace>
+
+    <!--
+        Configures the versioning
+    -->
+    <Versioning rootPath="${rep.home}/version">
+        <!--
+            Configures the filesystem to use for versioning ofr the respective
+            persistence manager
+        -->
+        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+            <param name="path" value="${rep.home}/version"/>
+        </FileSystem>
+
+        <!--
+            Configures the perisistence manager to use for the versioning.
+            Please note, that the current versioning implementation is based on
+            a 'normal' persistence manager, but this could change in future
+            implementations.
+        -->
+        <PersistenceManager class="org.apache.jackrabbit.core.state.mem.InMemPersistenceManager">
+            <param name="initialCapacity" value="10000"/>
+            <param name="loadFactor" value="0.3"/>
+            <param name="persistent" value="false"/>
+        </PersistenceManager>
+
+    </Versioning>
+
 </Repository>

Mime
View raw message