@Component public class AwsHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationHelper |
configurationHelper |
protected HerdStringHelper |
herdStringHelper |
protected RetryPolicyFactory |
retryPolicyFactory |
| Constructor and Description |
|---|
AwsHelper() |
| Modifier and Type | Method and Description |
|---|---|
AwsParamsDto |
getAwsParamsDto()
Constructs awsParamsDto with AWS parameters.
|
com.amazonaws.ClientConfiguration |
getClientConfiguration(AwsParamsDto awsParamsDto)
Creates a client configuration object that contains client configuration options such as proxy settings and max retry attempts.
|
Double |
getTransferRateInKilobytesPerSecond(Long totalBytesTransferred,
Long durationMillis)
Returns transfer rate in kBytes/s.
|
Double |
getTransferRateInMegabitsPerSecond(Long totalBytesTransferred,
Long durationMillis)
Returns transfer rate in Mbit/s (Decimal prefix: 1 Mbit/s = 1,000,000 bit/s).
|
@Autowired protected ConfigurationHelper configurationHelper
@Autowired protected HerdStringHelper herdStringHelper
@Autowired protected RetryPolicyFactory retryPolicyFactory
public AwsParamsDto getAwsParamsDto()
public com.amazonaws.ClientConfiguration getClientConfiguration(AwsParamsDto awsParamsDto)
awsParamsDto - the AWS related parameters that contain optional proxy informationpublic Double getTransferRateInKilobytesPerSecond(Long totalBytesTransferred, Long durationMillis)
totalBytesTransferred - Number of bytes transferred.durationMillis - Duration in milliseconds.public Double getTransferRateInMegabitsPerSecond(Long totalBytesTransferred, Long durationMillis)
totalBytesTransferred - Number of bytes transferred.durationMillis - Duration in milliseconds.Copyright © 2019. All rights reserved.