Package org.apache.jackrabbit.oak.plugins.document.mongo

Examples of org.apache.jackrabbit.oak.plugins.document.mongo.MongoBlobStore


    @Override
    public void setUp() throws Exception {
        mongoConnection = MongoUtils.getConnection();
        MongoUtils.dropCollections(mongoConnection.getDB());
       
        MongoBlobStore blobStore = new MongoBlobStore(mongoConnection.getDB());
        blobStore.setBlockSize(128);
        blobStore.setBlockSizeMin(48);
        this.store = blobStore;
    }
View Full Code Here


         * @return this
         */
        public Builder setMongoDB(DB db) {
            if (db != null) {
                this.documentStore = new MongoDocumentStore(db, this);
                this.blobStore = new MongoBlobStore(db);
            }
            return this;
        }
View Full Code Here

                if (this.documentStore == null) {
                    this.documentStore = new MongoDocumentStore(db, this);
                }

                if (this.blobStore == null) {
                    this.blobStore = new MongoBlobStore(db);
                }

                if (this.diffCache == null) {
                    this.diffCache = new MongoDiffCache(db, changesSizeMB, this);
                }
View Full Code Here

                if (this.documentStore == null) {
                    this.documentStore = new MongoDocumentStore(db, this);
                }

                if (this.blobStore == null) {
                    this.blobStore = new MongoBlobStore(db);
                }

                if (this.diffCache == null) {
                    this.diffCache = new MongoDiffCache(db, changesSizeMB, this);
                }
View Full Code Here

public class MongoMicroKernelFixture extends BaseMongoMicroKernelFixture {

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

         * @return this
         */
        public Builder setMongoDB(DB db) {
            if (db != null) {
                this.documentStore = new MongoDocumentStore(db, this);
                this.blobStore = new MongoBlobStore(db);
            }
            return this;
        }
View Full Code Here

                if (this.documentStore == null) {
                    this.documentStore = new MongoDocumentStore(db, this);
                }

                if (this.blobStore == null) {
                    this.blobStore = new MongoBlobStore(db, blobCacheSizeMB * 1024 * 1024);
                }

                if (this.diffCache == null) {
                    this.diffCache = new MongoDiffCache(db, changesSizeMB, this);
                }
View Full Code Here

                if (this.documentStore == null) {
                    this.documentStore = new MongoDocumentStore(db, this);
                }

                if (this.blobStore == null) {
                    this.blobStore = new MongoBlobStore(db);
                }

                if (this.diffCache == null) {
                    this.diffCache = new MongoDiffCache(db, changesSizeMB, this);
                }
View Full Code Here

                if (this.documentStore == null) {
                    this.documentStore = new MongoDocumentStore(db, this);
                }

                if (this.blobStore == null) {
                    GarbageCollectableBlobStore s = new MongoBlobStore(db, blobCacheSizeMB * 1024 * 1024L);
                    PersistentCache p = getPersistentCache();
                    if (p != null) {
                        s = p.wrapBlobStore(s);
                    }
                    this.blobStore = s;
View Full Code Here

public class MongoMicroKernelFixture extends BaseMongoMicroKernelFixture {

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

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.document.mongo.MongoBlobStore

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.