jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r614887 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal: AppendRecord.java FileJournal.java FileRecordIterator.java FileRecordLog.java
Date Thu, 24 Jan 2008 14:46:45 GMT
Author: dpfister
Date: Thu Jan 24 06:46:42 2008
New Revision: 614887

URL: http://svn.apache.org/viewvc?rev=614887&view=rev
Log:
JCR-1341 Cluster Journal directory should be created automatically
- Make classes/methods public in order to create custom journal implementation

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileJournal.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordIterator.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java?rev=614887&r1=614886&r2=614887&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
Thu Jan 24 06:46:42 2008
@@ -142,7 +142,7 @@
      *
      * @param revision revision
      */
-    protected void setRevision(long revision) {
+    public void setRevision(long revision) {
         this.revision = revision;
     }
 

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileJournal.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileJournal.java?rev=614887&r1=614886&r2=614887&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileJournal.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileJournal.java
Thu Jan 24 06:46:42 2008
@@ -114,6 +114,10 @@
             maximumSize = DEFAULT_MAXSIZE;
         }
         rootDirectory = new File(directory);
+        
+        // JCR-1341: Cluster Journal directory should be created automatically
+        rootDirectory.mkdirs();
+        
         if (!rootDirectory.exists() || !rootDirectory.isDirectory()) {
             String msg = "Directory specified does either not exist " +
                     "or is not a directory: " + directory;

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordIterator.java?rev=614887&r1=614886&r2=614887&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordIterator.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordIterator.java
Thu Jan 24 06:46:42 2008
@@ -27,7 +27,7 @@
  * Record cursor that returns unseen revisions in ascending order on every
  * iteration.
  */
-class FileRecordIterator implements RecordIterator {
+public class FileRecordIterator implements RecordIterator {
 
     /**
      * Log files to scan for revisions.

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java?rev=614887&r1=614886&r2=614887&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/FileRecordLog.java
Thu Jan 24 06:46:42 2008
@@ -37,7 +37,7 @@
  * (2 bytes each). The next 8 bytes contain the revision this log starts with.
  * After this, zero or more <code>ReadRecord</code>s follow.
  */
-class FileRecordLog {
+public class FileRecordLog {
 
     /**
      * Logger.



Mime
View raw message