jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1452223 - /jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/osgi/MongoMicroKernelService.java
Date Mon, 04 Mar 2013 09:43:11 GMT
Author: jukka
Date: Mon Mar  4 09:43:11 2013
New Revision: 1452223

URL: http://svn.apache.org/r1452223
Log:
OAK-619: Lock-free MongoMK implementation

Use the new MongoMK the for OSGi deployments of oak-mongomk

Modified:
    jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/osgi/MongoMicroKernelService.java

Modified: jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/osgi/MongoMicroKernelService.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/osgi/MongoMicroKernelService.java?rev=1452223&r1=1452222&r2=1452223&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/osgi/MongoMicroKernelService.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/osgi/MongoMicroKernelService.java
Mon Mar  4 09:43:11 2013
@@ -28,9 +28,7 @@ import org.apache.felix.scr.annotations.
 import org.apache.felix.scr.annotations.Property;
 import org.apache.jackrabbit.mk.api.MicroKernel;
 import org.apache.jackrabbit.mongomk.impl.MongoConnection;
-import org.apache.jackrabbit.mongomk.impl.MongoMicroKernel;
-import org.apache.jackrabbit.mongomk.impl.MongoNodeStore;
-import org.apache.jackrabbit.mongomk.impl.blob.MongoGridFSBlobStore;
+import org.apache.jackrabbit.mongomk.prototype.MongoMK;
 import org.apache.sling.commons.osgi.PropertiesUtil;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceRegistration;
@@ -64,7 +62,7 @@ public class MongoMicroKernelService {
     private final Logger logger = LoggerFactory.getLogger(this.getClass());
 
     private ServiceRegistration reg;
-    private MongoMicroKernel mk;
+    private MongoMK mk;
 
     @Activate
     private void activate(BundleContext context,Map<String,?> config) throws Exception
{
@@ -80,9 +78,7 @@ public class MongoMicroKernelService {
 
         logger.info("Connected to database {}", mongoDB);
 
-        MongoNodeStore nodeStore = new MongoNodeStore(mongoDB);
-        MongoGridFSBlobStore blobStore = new MongoGridFSBlobStore(mongoDB);
-        MongoMicroKernel mk = new MongoMicroKernel(connection, nodeStore, blobStore);
+        mk = new MongoMK(mongoDB, 0);
 
         Properties props = new Properties();
         props.setProperty("oak.mk.type","mongo");



Mime
View raw message