Introduction

Blob Stores are used to store (large) files in the cloud. Amdatu Blob Stores is based on the jclouds library that supports Blob Stores from several cloud providers such as Amazon S3 and Microsoft Azure. The Blob Stores component makes the jclouds API available as OSGi service using a Managed Service Factory. This way you can use Configuration Admin to configure Blob Stores while using the jclouds API to use the Blob Stores from code.

How to use

When at least one BlobStoreService is configured it can be used. The following example uses the BlobStoreService to list files in the Blob Store. As you can see the BlobStoreService just gives you a BlobStoreContext which is the jclouds API.

BlobStoreContext context = instance.getContext();
PageSet<? extends StorageMetadata> list = context.getBlobStore().list();
for (StorageMetadata storageMetadata : list) {
    System.out.println(storageMetadata.getName());
}

Components

Amdatu Blob Stores provides the following components:

Bundle

Required

Description

org.amdatu.blobstores

yes

Contains the BlobStoreService, and wraps jclouds including required dependencies

Dependencies

Dependency

Required

Description

org.apache.felix.dependencymanager

yes

Apache Felix Dependency Manager is used internally by all Amdatu components

Implementation of Config Admin (e.g. org.apache.felix.configadmin)

yes

Used to configure data sources

Resources