public class S3ConfigurationCache extends Object implements ConfigurationCache
| Modifier and Type | Field and Description |
|---|---|
private String |
bucket |
private String |
pathPattern |
private String |
prefix |
private com.amazonaws.services.s3.AmazonS3 |
s3 |
| Constructor and Description |
|---|
S3ConfigurationCache(String bucket,
String prefix,
String pathPattern,
String accessKey,
String secretKey,
String region)
Creates a new S3 configuration cache.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurationCacheFileInfo |
getCacheFileInfo(String contentType,
Map<String,List<String>> parameters) |
private final com.amazonaws.services.s3.AmazonS3 s3
private final String bucket
private final String prefix
private final String pathPattern
public S3ConfigurationCache(String bucket, String prefix, String pathPattern, String accessKey, String secretKey, String region) throws IOException
bucket - The S3 bucket.prefix - The S3 object prefix.pathPattern - The path pattern.accessKey - The (optional) S3 access key.secretKey - The (optional) S3 secret key.region - The AWS region (e.g. us-east-1).IOException - Thrown if the configuration cannot be read.public ConfigurationCacheFileInfo getCacheFileInfo(String contentType, Map<String,List<String>> parameters) throws InvalidParameterException
getCacheFileInfo in interface ConfigurationCacheInvalidParameterExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.