Package org.apache.jackrabbit.mongomk.impl.blob

Examples of org.apache.jackrabbit.mongomk.impl.blob.MongoGridFSBlobStore


        DB mongoDB = connection.getDB();

        logger.info("Connected to database {}", mongoDB);

        MongoNodeStore nodeStore = new MongoNodeStore(mongoDB);
        MongoGridFSBlobStore blobStore = new MongoGridFSBlobStore(mongoDB);
        MongoMicroKernel mk = new MongoMicroKernel(connection, nodeStore, blobStore);

        Properties props = new Properties();
        props.setProperty("oak.mk.type","mongo");
        reg = context.registerService(MicroKernel.class.getName(),mk,props);
View Full Code Here


    @Before
    public void setUp() throws Exception {
        DB db = mongoConnection.getDB();
        MongoNodeStore nodeStore = new MongoNodeStore(db);
        MongoAssert.setNodeStore(nodeStore);
        BlobStore blobStore = new MongoGridFSBlobStore(db);
        mk = new MongoMicroKernel(mongoConnection, nodeStore, blobStore);
    }
View Full Code Here

        mongoConnection2.getDB().dropDatabase();
        // DB1 handled by the AbstractMongoConnectionTest

        DB db = mongoConnection.getDB();
        mk1 = new MongoMicroKernel(mongoConnection, new MongoNodeStore(db),
                new MongoGridFSBlobStore(db));

        DB db2 = mongoConnection2.getDB();
        mk2 = new MongoMicroKernel(mongoConnection2, new MongoNodeStore(db2),
                new MongoGridFSBlobStore(db2));

        DB db3 = mongoConnection3.getDB();
        mk3 = new MongoMicroKernel(mongoConnection3, new MongoNodeStore(db3),
                new MongoGridFSBlobStore(db3));
    }
View Full Code Here

        MongoConnection connection = new MongoConnection(HOST,
                PORT, DB);
        connections.add(connection);
        DB mongoDB = connection.getDB();
        MongoNodeStore nodeStore = new MongoNodeStore(mongoDB);
        MongoGridFSBlobStore blobStore = new MongoGridFSBlobStore(mongoDB);
        return new MongoMicroKernel(connection, nodeStore, blobStore);
    }
View Full Code Here

    @Before
    public void setUp() throws Exception {
        super.setUp();
        DB db = mongoConnection.getDB();
        NodeStore nodeStore = new MongoNodeStore(db);
        BlobStore blobStore = new MongoGridFSBlobStore(db);
        mk2 = new MongoMicroKernel(mongoConnection, nodeStore, blobStore);
    }
View Full Code Here

            String diff = buildPyramidDiff("/", 0, numberOfChildren,
                    numberOfNodes, prefixes[i], new StringBuilder()).toString();
            //System.out.println(diff);
            DB db = mongoConnection.getDB();
            MongoMicroKernel mk = new MongoMicroKernel(mongoConnection,
                    new MongoNodeStore(db), new MongoGridFSBlobStore(db));
            GenericWriteTask task = new GenericWriteTask("mk-" + i, mk, diff, 10);
            executor.execute(task);
        }
        executor.shutdown();
        executor.awaitTermination(10, TimeUnit.MINUTES);
View Full Code Here

public class MongoGridFSMicroKernelFixture extends BaseMongoMicroKernelFixture {

    @Override
    protected BlobStore getBlobStore(DB db) {
        return new MongoGridFSBlobStore(db);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.mongomk.impl.blob.MongoGridFSBlobStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.