Package org.apache.hadoop.fs.s3a.impl
Class EncryptionS3ClientFactory
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.s3a.DefaultS3ClientFactory
org.apache.hadoop.fs.s3a.impl.EncryptionS3ClientFactory
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,S3ClientFactory
Factory class to create encrypted s3 client and encrypted async s3 client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.s3a.S3ClientFactory
S3ClientFactory.S3ClientCreationParameters -
Field Summary
Fields inherited from class org.apache.hadoop.fs.s3a.DefaultS3ClientFactory
ERROR_ENDPOINT_WITH_FIPS, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.s3.S3AsyncClientcreateS3AsyncClient(URI uri, S3ClientFactory.S3ClientCreationParameters parameters) Create async encrypted s3 client.software.amazon.awssdk.services.s3.S3ClientcreateS3Client(URI uri, S3ClientFactory.S3ClientCreationParameters parameters) Creates both synchronous and asynchronous encrypted s3 clients.Methods inherited from class org.apache.hadoop.fs.s3a.DefaultS3ClientFactory
createClientOverrideConfiguration, createS3TransferManager, getS3EndpointMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
EncryptionS3ClientFactory
public EncryptionS3ClientFactory()
-
-
Method Details
-
createS3Client
public software.amazon.awssdk.services.s3.S3Client createS3Client(URI uri, S3ClientFactory.S3ClientCreationParameters parameters) throws IOException Creates both synchronous and asynchronous encrypted s3 clients. Synchronous client is wrapped by encryption client first and then Asynchronous client is wrapped by encryption client.- Specified by:
createS3Clientin interfaceS3ClientFactory- Overrides:
createS3Clientin classDefaultS3ClientFactory- Parameters:
uri- S3A file system URIparameters- parameter object- Returns:
- encrypted s3 client
- Throws:
IOException- IO failures
-
createS3AsyncClient
public software.amazon.awssdk.services.s3.S3AsyncClient createS3AsyncClient(URI uri, S3ClientFactory.S3ClientCreationParameters parameters) throws IOException Create async encrypted s3 client.- Specified by:
createS3AsyncClientin interfaceS3ClientFactory- Overrides:
createS3AsyncClientin classDefaultS3ClientFactory- Parameters:
uri- S3A file system URIparameters- parameter object- Returns:
- async encrypted s3 client
- Throws:
IOException- IO failures
-