You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2013/04/10 11:11:17 UTC

svn commit: r1466394 - /jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MongoMK.java

Author: thomasm
Date: Wed Apr 10 09:11:17 2013
New Revision: 1466394

URL: http://svn.apache.org/r1466394
Log:
OAK-746 Builder for the MongoMK

Modified:
    jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MongoMK.java

Modified: jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MongoMK.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MongoMK.java?rev=1466394&r1=1466393&r2=1466394&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MongoMK.java (original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/prototype/MongoMK.java Wed Apr 10 09:11:17 2013
@@ -155,34 +155,6 @@ public class MongoMK implements MicroKer
      */
     private final Map<Revision, Revision> branchCommits
             = new ConcurrentHashMap<Revision, Revision>();
-
-    /**
-     * Create a new in-memory MongoMK used for testing.
-     */
-    public MongoMK() {
-        this(new Builder());
-    }
-    
-    /**
-     * Create a new MongoMK.
-     * 
-     * @param db the MongoDB connection (null for in-memory)
-     * @param clusterId the cluster id (must be unique)
-     */
-    public MongoMK(DB db, int clusterId) {
-        this(new Builder().setMongoDB(db).setClusterId(clusterId));
-    }
-
-    /**
-     * Create a new MongoMK.
-     *
-     * @param store the store (might be shared)
-     * @param blobStore the blob store to use
-     * @param clusterId the cluster id (must be unique)
-     */
-    public MongoMK(DocumentStore store, BlobStore blobStore, int clusterId) {
-        this(new Builder().setDocumentStore(store).setBlobStore(blobStore).setClusterId(clusterId));
-    }
     
     MongoMK(Builder builder) {
         this.store = builder.getDocumentStore();