public class S3RemoteResourceHandler extends AbstractRemoteResourceHandler
AbstractRemoteResourceHandler.AtomicTupleReference
Modifier and Type | Field and Description |
---|---|
protected String |
s3Bucket |
protected String |
s3Endpoint |
protected Path |
s3Key |
protected String |
s3Object |
protected Path |
s3Secret |
atomicTupleReference, builder, logger, requiredResource, resourceUuid
Constructor and Description |
---|
S3RemoteResourceHandler(String resourceUuid,
String s3Endpoint,
String s3Bucket,
String s3Object,
Path s3Key,
Path s3Secret,
IResourceBuilder builder,
String cron,
boolean requiredResource,
boolean silent,
org.thales.punch.libraries.metrics.api.IMetricContext mc)
S3 CTOR
|
Modifier and Type | Method and Description |
---|---|
protected static Tuple |
getResourceFromS3(IResourceBuilder builder,
String endpoint,
String bucket,
String object,
Path accessKey,
Path secretKey) |
void |
reload() |
clear, get, loadingFailures, loadingSuccess, run, start, startLoading, stop, stopLoading
protected String s3Endpoint
protected String s3Bucket
protected Path s3Key
protected Path s3Secret
protected String s3Object
public S3RemoteResourceHandler(String resourceUuid, String s3Endpoint, String s3Bucket, String s3Object, Path s3Key, Path s3Secret, IResourceBuilder builder, String cron, boolean requiredResource, boolean silent, org.thales.punch.libraries.metrics.api.IMetricContext mc)
s3Endpoint
- the S3 HTTPS endpoints3Bucket
- the S3 buckets3Object
- the S3 object, i.e. resource files3Key
- the S3 access keys3Secret
- the S3 secretcron
- the CRON expression. If null no thread is launched.builder
- the resource builder in charge of transforming the loaded resourcesrequiredResource
- true to make it mandatory to load the resource firstmc
- the metrics contextprotected static Tuple getResourceFromS3(IResourceBuilder builder, String endpoint, String bucket, String object, Path accessKey, Path secretKey) throws IOException
IOException
public void reload() throws IOException
reload
in class AbstractRemoteResourceHandler
IOException
Copyright © 2023. All rights reserved.