You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2008/09/12 18:56:27 UTC
svn commit: r694740 - in
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog:
DefaultChangeLog.java TaggableSearchableChangeLogStore.java
Author: kayyagari
Date: Fri Sep 12 09:56:27 2008
New Revision: 694740
URL: http://svn.apache.org/viewvc?rev=694740&view=rev
Log:
refactored method name getPartition
added a new method to create the changelog partition
Modified:
directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java
directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java?rev=694740&r1=694739&r2=694740&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java Fri Sep 12 09:56:27 2008
@@ -212,7 +212,11 @@
if ( exposeChangeLog && isTagSearchSupported() )
{
- Partition partition = ( ( TaggableSearchableChangeLogStore ) store ).getPartition( partitionSuffix, revContainerName, tagContainerName );
+ TaggableSearchableChangeLogStore tmp = ( TaggableSearchableChangeLogStore ) store;
+
+ tmp.createPartition( partitionSuffix, revContainerName, tagContainerName );
+
+ Partition partition = tmp.getPartition();
partition.init( service );
service.addPartition( partition );
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java?rev=694740&r1=694739&r2=694740&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java Fri Sep 12 09:56:27 2008
@@ -22,6 +22,7 @@
import org.apache.directory.server.core.partition.Partition;
+
/**
* TODO TaggableSearchableChangeLogStore.
*
@@ -51,8 +52,14 @@
* @param partitionSuffix the suffix of the partition e.x ou=chnagelog
* @param revContainerName the container's name for holding the revisions ex. ou=revisions
* @param tagContainerName the container's name for holding the tags ex. ou=tags
- *
- * @return the partial-write enabled uninitialized partition
*/
- Partition getPartition( String partitionSuffix, String revContainerName, String tagContainerName );
+ void createPartition( String partitionSuffix, String revContainerName, String tagContainerName );
+
+ /**
+ * Gets the partition associated with this store
+ *
+ * @return the partition associated with this store, null if not initialized
+ */
+ Partition getPartition();
+
}