directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r681996 - in /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog: MemoryChangeLogStore.java TaggableChangeLogStore.java
Date Sat, 02 Aug 2008 15:29:01 GMT
Author: kayyagari
Date: Sat Aug  2 08:29:01 2008
New Revision: 681996

URL: http://svn.apache.org/viewvc?rev=681996&view=rev
Log:
added a new method to create tag with both revision and a description

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java?rev=681996&r1=681995&r2=681996&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
Sat Aug  2 08:29:01 2008
@@ -478,6 +478,21 @@
     {
         return tags.remove( revision );
     }
-    
+
+
+    /**
+     * @see TaggableChangeLogStore#tag(long, String)
+     */
+    public Tag tag( long revision, String descrition ) throws Exception
+    {
+        if ( tags.containsKey( revision ) )
+        {
+            return tags.get( revision );
+        }
+
+        latest = new Tag( revision, descrition );
+        tags.put( revision, latest );
+        return latest;
+    }
     
 }

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java?rev=681996&r1=681995&r2=681996&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java
Sat Aug  2 08:29:01 2008
@@ -78,4 +78,15 @@
      * @throws Exception on failures to access the tag store
      */
     Tag removeTag( long revision ) throws Exception;
+    
+    /**
+     * Creates a tag with the given description for a snapshot of the server
+     * in a specific state at a revision.
+     *
+     * @param revision the revision number that was tagged
+     * @param descrition a description of the state associate with the tag
+     * @return the Tag associated with the revision
+     * @throws Exception on failures to access the tag store
+     */
+    Tag tag( long revision, String descrition ) throws Exception;
 }



Mime
View raw message