Package org.sdase.commons.server.s3
Class S3Bundle<C extends io.dropwizard.Configuration>
- java.lang.Object
-
- org.sdase.commons.server.s3.S3Bundle<C>
-
- All Implemented Interfaces:
io.dropwizard.ConfiguredBundle<C>
public class S3Bundle<C extends io.dropwizard.Configuration> extends java.lang.Object implements io.dropwizard.ConfiguredBundle<C>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
S3Bundle.BucketNameProvider<C extends io.dropwizard.Configuration>
static class
S3Bundle.Builder<T extends io.dropwizard.Configuration>
static interface
S3Bundle.FinalBuilder<C extends io.dropwizard.Configuration>
static interface
S3Bundle.InitialBuilder
static interface
S3Bundle.S3HealthCheckBuilder<C extends io.dropwizard.Configuration>
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
S3_EXTERNAL_HEALTH_CHECK_NAME
static java.lang.String
S3_HEALTH_CHECK_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static S3Bundle.InitialBuilder
builder()
com.amazonaws.services.s3.AmazonS3
getClient()
void
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
void
run(C configuration, io.dropwizard.setup.Environment environment)
-
-
-
Field Detail
-
S3_HEALTH_CHECK_NAME
public static final java.lang.String S3_HEALTH_CHECK_NAME
- See Also:
- Constant Field Values
-
S3_EXTERNAL_HEALTH_CHECK_NAME
public static final java.lang.String S3_EXTERNAL_HEALTH_CHECK_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
- Specified by:
initialize
in interfaceio.dropwizard.ConfiguredBundle<C extends io.dropwizard.Configuration>
-
run
public void run(C configuration, io.dropwizard.setup.Environment environment) throws java.lang.Exception
- Specified by:
run
in interfaceio.dropwizard.ConfiguredBundle<C extends io.dropwizard.Configuration>
- Throws:
java.lang.Exception
-
getClient
public com.amazonaws.services.s3.AmazonS3 getClient()
-
builder
public static S3Bundle.InitialBuilder builder()
-
-