public class S3ClientWrapper extends Object implements ClientWrapper
Constructor and Description |
---|
S3ClientWrapper()
Constructor method (do not use).
|
Modifier and Type | Method and Description |
---|---|
boolean |
disconnectClient()
Let's the underlying client disconnect from the server.
|
software.amazon.awssdk.services.s3.S3Client |
getClient()
Provides access to the internal Amazon S3 client.
|
static String |
getClientURLID(org.apache.commons.vfs2.provider.GenericFileName root,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib)
Provides a textual representation for this connection.
|
static S3ClientWrapper |
getS3ClientWrapper(org.apache.commons.vfs2.provider.GenericFileName root,
org.apache.commons.vfs2.FileSystemOptions options,
VFSLib vfslib,
S3FileProvider provider)
Gets an idle client from the pool or creates a fresh new instance.
|
String |
getURLID()
Provides the unique URL identifier used to manage this client instance.
|
String |
toString()
Provides a textual representation.
|
static void |
unlockS3ClientWrapper(S3ClientWrapper wrapper)
Releases the given client from the pool.
|
public S3ClientWrapper() throws InstantiationException
InstantiationException
- Error indicationpublic software.amazon.awssdk.services.s3.S3Client getClient()
public boolean disconnectClient()
disconnectClient
in interface ClientWrapper
public String getURLID()
Something like "s3://user@aws.amazon.com".
getURLID
in interface ClientWrapper
public static S3ClientWrapper getS3ClientWrapper(org.apache.commons.vfs2.provider.GenericFileName root, org.apache.commons.vfs2.FileSystemOptions options, VFSLib vfslib, S3FileProvider provider) throws org.apache.commons.vfs2.FileSystemException
root
- The root pathoptions
- The file system optionsvfslib
- The parental object, shared instance if null
provider
- The file providerorg.apache.commons.vfs2.FileSystemException
- If an I/O error occurspublic static void unlockS3ClientWrapper(S3ClientWrapper wrapper)
wrapper
- The wrapperpublic String toString()
public static String getClientURLID(org.apache.commons.vfs2.provider.GenericFileName root, org.apache.commons.vfs2.FileSystemOptions options, VFSLib vfslib)
root
- The root pathoptions
- The file system optionsvfslib
- The parental object, shared instance if null
Copyright © 2005-2024 Leisenfels GmbH. All rights reserved.