Examples of BlobStore


Examples of io.fathom.cloud.blobs.BlobStore

        file.setLength(blob.dataLength);

        updateAttributes(userAttributes, file.getAttributesBuilder());

        if (PARANOID) {
            BlobStore blobStore = getBlobStore(project);
            sanityCheck(blobStore, file);
        }

        storeDirectory(getDirectoryStorage(project), newDir);
    }
View Full Code Here

Examples of org.akubraproject.BlobStore

  @Test
  public void testBackingStores() {
    store.setBackingStores(new ArrayList<BlobStore>());
    assertTrue(store.getBackingStores().isEmpty());

    BlobStore store1               = createMockStore(URI.create("urn:store:1"));
    store.setBackingStores(Collections.singletonList(store1));
    assertEquals(1, store.getBackingStores().size());
    assertEquals(store1, store.getBackingStores().get(0));

    BlobStore store2 = createMockStore(URI.create("urn:store:2"));
    BlobStore store3 = createMockStore(URI.create("urn:store:3"));

    store.setBackingStores(Arrays.asList(store1, store2, store3));
    assertEquals(3, store.getBackingStores().size());
    assertEquals(store1, store.getBackingStores().get(0));
    assertEquals(store2, store.getBackingStores().get(1));
View Full Code Here

Examples of org.akubraproject.BlobStore

    FileUtils.deleteDirectory(dbDir);
    dbDir.getParentFile().mkdirs();

    System.setProperty("derby.stream.error.file", new File(base, "derby.log").toString());

    BlobStore store = new TransactionalStore(URI.create("urn:" + name), backingStore, dbDir.getPath());
    return store;
  }
View Full Code Here

Examples of org.akubraproject.BlobStore

    assertEquals(Iterators.size(c.listBlobIds("info")), 1);
  }

  private static BlobStoreConnection getTestConnection(boolean prefixMappable)
      throws Exception {
    BlobStore store = new IdMappingBlobStore(URI.create("urn:test-store"),
        new MemBlobStore(), new MockIdMapper("internal:", prefixMappable));
    return store.openConnection(null, null);
  }
View Full Code Here

Examples of org.akubraproject.BlobStore

  private static Blob getTestBlob(URI blobId,
                                  boolean delegateCanCanonicalize)
      throws Exception {
    IdMapper mapper = new MockIdMapper();
    BlobStore store = new IdMappingBlobStore(URI.create("urn:test-store"),
        new MemBlobStore(), mapper);
    BlobStoreConnection connection = store.openConnection(null, null);
    Blob delegate = connection.getBlob(blobId, null);
    OutputStream out = delegate.openOutputStream(-1, false);
    IOUtils.copy(new StringReader(blobId.toString()), out);
    out.close();
    if (!delegateCanCanonicalize)
View Full Code Here

Examples of org.apache.jackrabbit.mk.blobs.BlobStore

            mongoConnection = new MongoConnection(conf.getHost(),
                    conf.getMongoPort(), conf.getMongoDatabase());
            MongoNodeStore nodeStore = new MongoNodeStore(
                    mongoConnection.getDB());
            // MongoAssert.setNodeStore(nodeStore);
            BlobStore blobStore = new MongoGridFSBlobStore(
                    mongoConnection.getDB());
            mks.add(new MongoMicroKernel(mongoConnection, nodeStore, blobStore));
        }

        return mks;
View Full Code Here

Examples of org.apache.jackrabbit.mk.blobs.BlobStore

        statsCollection.insert(new Stats[] { commitStats, getNodesStats }, WriteConcern.NONE);
    }

    private void initMicroKernel() throws Exception {
        NodeStore nodeStore = new MongoNodeStore(mongoConnection.getDB());
        BlobStore blobStore = new BlobStoreFS(System.getProperty("java.io.tmpdir"));
        microKernel = new MongoMicroKernel(mongoConnection, nodeStore, blobStore);
    }
View Full Code Here

Examples of org.apache.jackrabbit.mk.blobs.BlobStore

        this.handler = new ContinousHandler();
    }

    private void initMicroKernel() throws Exception {
        NodeStore nodeStore = new MongoNodeStore(mongoConnection.getDB());
        BlobStore blobStore = new BlobStoreFS(System.getProperty("java.io.tmpdir"));
        microKernel = new MongoMicroKernel(mongoConnection, nodeStore, blobStore);
    }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.api.BlobStore

        config.getMongoPort(), config.getMongoDatabase());
  }

  static MongoMicroKernel initMicroKernel() throws Exception {
    NodeStore nodeStore = new NodeStoreMongo(mongoConnection);
    BlobStore blobStore = new BlobStoreFS(
        System.getProperty("java.io.tmpdir"));
    return new MongoMicroKernel(nodeStore, blobStore);
  }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.blob.BlobStore

        MongoClient client = new MongoClient(mongoURI);
        DB mongoDB = client.getDB(db);

        // Check if any valid external BlobStore is defined.
        // If not then use the default which is MongoBlobStore
        BlobStore blobStore = null;
        if (Strings.isNullOrEmpty(blobStoreType)) {
            blobStore = BlobStoreHelper.create(
                    BlobStoreConfiguration.newInstance().
                            loadFromContextOrMap(config, context))
                    .orNull();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.