@Component public class AwsHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationHelper |
configurationHelper |
protected HerdStringHelper |
herdStringHelper |
| Constructor and Description |
|---|
AwsHelper() |
| Modifier and Type | Method and Description |
|---|---|
AwsParamsDto |
getAwsParamsDto()
Constructs awsParamsDto with AWS parameters.
|
com.amazonaws.ClientConfiguration |
getClientConfiguration(AwsParamsDto awsParamsDto)
Returns client configuration options that might contain proxy settings set per specified AWS parameters DTO.
|
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
public AwsParamsDto getAwsParamsDto()
public com.amazonaws.ClientConfiguration getClientConfiguration(AwsParamsDto awsParamsDto)
awsParamsDto - the AWS params DTO objectpublic 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 © 2017. All rights reserved.