Search in sources :

Example 1 with S3Config

use of com.emc.object.s3.S3Config in project pravega by pravega.

the class ExtendedS3StorageFactory method createStorageAdapter.

@Override
public Storage createStorageAdapter() {
    S3Config s3Config = new S3Config(config.getUrl()).withIdentity(config.getAccessKey()).withSecretKey(config.getSecretKey()).withNamespace(config.getNamespace());
    S3JerseyClient client = new S3JerseyClient(s3Config);
    ExtendedS3Storage s = new ExtendedS3Storage(client, this.config);
    return new AsyncStorageWrapper(new RollingStorage(s), this.executor);
}
Also used : S3Config(com.emc.object.s3.S3Config) S3JerseyClient(com.emc.object.s3.jersey.S3JerseyClient) AsyncStorageWrapper(io.pravega.segmentstore.storage.AsyncStorageWrapper) RollingStorage(io.pravega.segmentstore.storage.rolling.RollingStorage)

Aggregations

S3Config (com.emc.object.s3.S3Config)1 S3JerseyClient (com.emc.object.s3.jersey.S3JerseyClient)1 AsyncStorageWrapper (io.pravega.segmentstore.storage.AsyncStorageWrapper)1 RollingStorage (io.pravega.segmentstore.storage.rolling.RollingStorage)1