@Component public class EmrPricingHelper extends AwsHelper
configurationHelper| Constructor and Description |
|---|
EmrPricingHelper() |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getTotalCost(Ec2PriceDto ec2Price)
Returns the total cost per hour to run the requested number of instances for the given price.
|
void |
updateEmrClusterDefinitionWithBestPrice(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
EmrClusterDefinition emrClusterDefinition,
AwsParamsDto awsParamsDto)
Finds the best price for each master and core instances based on the subnets and master and core instance search parameters given in the definition.
|
getAwsParamsDto, getClientConfiguration, getTransferRateInKilobytesPerSecond, getTransferRateInMegabitsPerSecondpublic void updateEmrClusterDefinitionWithBestPrice(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, EmrClusterDefinition emrClusterDefinition, AwsParamsDto awsParamsDto)
emrClusterAlternateKeyDto - EMR cluster alternate keyemrClusterDefinition - The EMR cluster definition with search criteria, and the definition that will be updatedawsParamsDto - the AWS related parameters for access/secret keys and proxy detailspublic BigDecimal getTotalCost(Ec2PriceDto ec2Price)
ec2Price - the EC2 pricing informationCopyright © 2017. All rights reserved.