use of org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore in project jackrabbit-oak by apache.
the class MongoS3DataStoreBlobGCTest method setUpConnection.
@Before
@Override
public void setUpConnection() throws Exception {
Properties props = S3DataStoreUtils.getS3Config();
startDate = new Date();
mongoConnection = connectionFactory.getConnection();
MongoUtils.dropCollections(mongoConnection.getDB());
File root = folder.newFolder();
bucket = root.getName();
props.setProperty(S3Constants.S3_BUCKET, bucket);
props.setProperty("cacheSize", "0");
blobStore = new DataStoreBlobStore(S3DataStoreUtils.getS3DataStore(s3Class, props, root.getAbsolutePath()));
mk = new DocumentMK.Builder().clock(getTestClock()).setMongoDB(mongoConnection.getDB()).setBlobStore(blobStore).open();
}
use of org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore in project jackrabbit-oak by apache.
the class SharedAzureDataStoreUtilsTest method getBlobStore.
@Override
protected DataStoreBlobStore getBlobStore(File rootFolder) throws Exception {
Properties props = AzureDataStoreUtils.getAzureConfig();
containerName = rootFolder.getName();
props.setProperty(AzureConstants.AZURE_BLOB_CONTAINER_NAME, containerName);
props.setProperty("cacheSize", "0");
DataStoreBlobStore dataStoreBlobStore = new DataStoreBlobStore(AzureDataStoreUtils.getAzureDataStore(props, rootFolder.getAbsolutePath()));
return dataStoreBlobStore;
}
use of org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore in project jackrabbit-oak by apache.
the class S3SharedBlobStoreGCTest method getBlobStore.
@Override
protected DataStoreBlobStore getBlobStore(File rootFolder) throws Exception {
Properties props = S3DataStoreUtils.getS3Config();
bucket = rootFolder.getName();
props.setProperty(S3Constants.S3_BUCKET, bucket);
props.setProperty("cacheSize", "0");
return new DataStoreBlobStore(S3DataStoreUtils.getS3DataStore(s3Class, props, rootFolder.getAbsolutePath()));
}
use of org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore in project jackrabbit-oak by apache.
the class SharedS3DataStoreUtilsTest method getBlobStore.
@Override
protected DataStoreBlobStore getBlobStore(File rootFolder) throws Exception {
Properties props = S3DataStoreUtils.getS3Config();
bucket = rootFolder.getName();
props.setProperty(S3Constants.S3_BUCKET, bucket);
props.setProperty("cacheSize", "0");
return new DataStoreBlobStore(S3DataStoreUtils.getS3DataStore(s3Class, props, rootFolder.getAbsolutePath()));
}
use of org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore in project jackrabbit-oak by apache.
the class AzureSharedBlobStoreGCTest method getBlobStore.
@Override
protected DataStoreBlobStore getBlobStore(File rootFolder) throws Exception {
Properties props = AzureDataStoreUtils.getAzureConfig();
containerName = rootFolder.getName();
props.setProperty(AzureConstants.AZURE_BLOB_CONTAINER_NAME, containerName);
props.setProperty("cacheSize", "0");
return new DataStoreBlobStore(AzureDataStoreUtils.getAzureDataStore(props, rootFolder.getAbsolutePath()));
}
Aggregations