Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.22 KB

File metadata and controls

26 lines (17 loc) · 1.22 KB

SDA Commons Server S3

This module provides the S3Bundle, a Dropwizard bundle that is used to perform operations on an object storage.

The bundle provides an S3 client based on the Amazon AWS SDK.

Usage

The S3Bundle should be added as a field in the application class instead of being anonymously added in the initialize method like other bundles of this library. Implementations need to refer to the instance to access the client.

The Dropwizard applications config class needs to provide a S3Configuration.

The bundle builder requires to define the getter of the S3Configuration as method reference to access the configuration.

Afterwards getClient() is used to access an instance of AmazonS3 that is used to operate on the object storage. See S3BundleTest for a detailed usage example.

Tracing

The bundle comes with OpenTracing instrumentation.