public class ClientManagerImpl extends org.apache.hadoop.service.AbstractService implements ClientManager
serviceStop().
Updates Statistic.STORE_CLIENT_CREATION
to track count and duration of client creation.| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ClientManagerImpl(S3ClientFactory clientFactory,
S3ClientFactory unencryptedClientFactory,
S3ClientFactory.S3ClientCreationParameters clientCreationParameters,
org.apache.hadoop.fs.statistics.DurationTrackerFactory durationTrackerFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
software.amazon.awssdk.services.s3.S3AsyncClient |
getOrCreateAsyncClient()
Get the Async S3Client,raising a failure to create as an IOException.
|
software.amazon.awssdk.services.s3.S3Client |
getOrCreateAsyncS3ClientUnchecked()
Get the AsyncS3Client, raising a failure to create as an UncheckedIOException.
|
software.amazon.awssdk.services.s3.S3Client |
getOrCreateS3Client()
Get the S3Client, raising a failure to create as an IOException.
|
software.amazon.awssdk.services.s3.S3Client |
getOrCreateS3ClientUnchecked()
Get the S3Client, raising a failure to create as an UncheckedIOException.
|
software.amazon.awssdk.transfer.s3.S3TransferManager |
getOrCreateTransferManager()
Get the transfer manager, creating it and any dependencies if needed.
|
software.amazon.awssdk.services.s3.S3Client |
getOrCreateUnencryptedS3Client()
Get or create an unencrypted S3 client.
|
URI |
getUri()
Get the URI of the filesystem.
|
protected void |
serviceStop() |
String |
toString() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, setConfig, start, stop, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic ClientManagerImpl(S3ClientFactory clientFactory, S3ClientFactory unencryptedClientFactory, S3ClientFactory.S3ClientCreationParameters clientCreationParameters, org.apache.hadoop.fs.statistics.DurationTrackerFactory durationTrackerFactory)
This does not create any clients.
It does disable noisy logging from the S3 Transfer Manager.
clientFactory - client factory to invokeunencryptedClientFactory - client factory to invokeclientCreationParameters - creation parameters.durationTrackerFactory - duration tracker.public software.amazon.awssdk.services.s3.S3Client getOrCreateS3Client()
throws IOException
ClientManagergetOrCreateS3Client in interface ClientManagerIOException - failure to create the client.public software.amazon.awssdk.services.s3.S3Client getOrCreateS3ClientUnchecked()
throws UncheckedIOException
getOrCreateS3ClientUnchecked in interface ClientManagerUncheckedIOException - failure to create the client.public software.amazon.awssdk.services.s3.S3AsyncClient getOrCreateAsyncClient()
throws IOException
ClientManagergetOrCreateAsyncClient in interface ClientManagerIOException - failure to create the client.public software.amazon.awssdk.services.s3.S3Client getOrCreateAsyncS3ClientUnchecked()
throws UncheckedIOException
getOrCreateAsyncS3ClientUnchecked in interface ClientManagerUncheckedIOException - failure to create the client.public software.amazon.awssdk.services.s3.S3Client getOrCreateUnencryptedS3Client()
throws IOException
getOrCreateUnencryptedS3Client in interface ClientManagerIOException - on any failurepublic software.amazon.awssdk.transfer.s3.S3TransferManager getOrCreateTransferManager()
throws IOException
ClientManagergetOrCreateTransferManager in interface ClientManagerIOException - on any failure to create the managerprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic URI getUri()
public String toString()
toString in class org.apache.hadoop.service.AbstractServiceCopyright © 2008–2025 Apache Software Foundation. All rights reserved.