public final class Utils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AWSDOTCOM
constants to define endpoint to various AWS region
|
static String |
DASH |
static String |
DEFAULT_AWS_BUCKET_REGION
The default value AWS bucket region.
|
static String |
DEFAULT_CONFIG_FILE |
static String |
DOT |
static String |
S3 |
Modifier and Type | Method and Description |
---|---|
static void |
deleteBucket(String bucketName)
Delete S3 bucket.
|
static com.amazonaws.services.s3.AmazonS3Client |
openService(Properties prop)
Create AmazonS3Client from properties.
|
static Properties |
readConfig(String fileName)
Read a configuration properties file.
|
public static final String DEFAULT_CONFIG_FILE
public static final String DEFAULT_AWS_BUCKET_REGION
public static final String AWSDOTCOM
public static final String S3
public static final String DOT
public static final String DASH
public static com.amazonaws.services.s3.AmazonS3Client openService(Properties prop)
prop
- properties to configure @link AmazonS3Client
AmazonS3Client
public static void deleteBucket(String bucketName) throws IOException
bucketName
- the bucket name.IOException
public static Properties readConfig(String fileName) throws IOException
fileName
- the properties file nameIOException
- if the file doesn't existCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.