test_class.declarator: awsHelper
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private AwsHelper awsHelper;
test_class.type: AwsHelper
test_class.var_name: awsHelper
test_class.file: herd-code/herd-dao/src/test/java/org/finra/herd/dao/helper/AwsHelperTest.java
test_class.identifier: AwsHelperTest
test_class.superclass: extends AbstractDaoTest
test_case.body: @Test
      public void testGetAwsParamsDto() throws Exception
      {
          // Get AWS parameters DTO.
          AwsParamsDto resultAwsParamsDto = awsHelper.getAwsParamsDto();
  
          // Validate the results.
          // Since local users could set environment variables with a real HTTP proxy to test the real application, we can't update the environment to test
          // specific values. Instead, we can only test that the returned DTO contains the values in the environment.
          assertEquals(configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_HOST), resultAwsParamsDto.getHttpProxyHost());
          assertEquals(configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_PORT, Integer.class), resultAwsParamsDto.getHttpProxyPort());
          assertNotNull(resultAwsParamsDto);
      }
test_case.class_method_signature: AwsHelperTest.testGetAwsParamsDto()
test_case.full_signature: @Test public void testGetAwsParamsDto()
test_case.identifier: testGetAwsParamsDto
test_case.invocations: getAwsParamsDto assertEquals getProperty getHttpProxyHost assertEquals getProperty getHttpProxyPort assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAwsParamsDto()
focal_class.declarator: BITS_PER_BYTE = 8
focal_class.modifier: private static final
focal_class.original_string: private static final int BITS_PER_BYTE = 8;
focal_class.type: int
focal_class.var_name: BITS_PER_BYTE
focal_class.declarator: configurationHelper
focal_class.modifier: @Autowired
      protected
focal_class.original_string: @Autowired
      protected ConfigurationHelper configurationHelper;
focal_class.type: ConfigurationHelper
focal_class.var_name: configurationHelper
focal_class.declarator: herdStringHelper
focal_class.modifier: @Autowired
      protected
focal_class.original_string: @Autowired
      protected HerdStringHelper herdStringHelper;
focal_class.type: HerdStringHelper
focal_class.var_name: herdStringHelper
focal_class.declarator: retryPolicyFactory
focal_class.modifier: @Autowired
      protected
focal_class.original_string: @Autowired
      protected RetryPolicyFactory retryPolicyFactory;
focal_class.type: RetryPolicyFactory
focal_class.var_name: retryPolicyFactory
focal_class.file: herd-code/herd-dao/src/main/java/org/finra/herd/dao/helper/AwsHelper.java
focal_class.identifier: AwsHelper
focal_class.class_method_signature: AwsHelper.getAwsParamsDto()
focal_class.full_signature: public AwsParamsDto getAwsParamsDto()
focal_class.identifier: getAwsParamsDto
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: AwsParamsDto
focal_class.signature: AwsParamsDto getAwsParamsDto()
focal_class.class_method_signature: AwsHelper.getClientConfiguration(AwsParamsDto awsParamsDto)
focal_class.full_signature: public ClientConfiguration getClientConfiguration(AwsParamsDto awsParamsDto)
focal_class.identifier: getClientConfiguration
focal_class.modifiers: public
focal_class.parameters: (AwsParamsDto awsParamsDto)
focal_class.return: ClientConfiguration
focal_class.signature: ClientConfiguration getClientConfiguration(AwsParamsDto awsParamsDto)
focal_class.class_method_signature: AwsHelper.getTransferRateInKilobytesPerSecond(Long totalBytesTransferred, Long durationMillis)
focal_class.full_signature: public Double getTransferRateInKilobytesPerSecond(Long totalBytesTransferred, Long durationMillis)
focal_class.identifier: getTransferRateInKilobytesPerSecond
focal_class.modifiers: public
focal_class.parameters: (Long totalBytesTransferred, Long durationMillis)
focal_class.return: Double
focal_class.signature: Double getTransferRateInKilobytesPerSecond(Long totalBytesTransferred, Long durationMillis)
focal_class.class_method_signature: AwsHelper.getTransferRateInMegabitsPerSecond(Long totalBytesTransferred, Long durationMillis)
focal_class.full_signature: public Double getTransferRateInMegabitsPerSecond(Long totalBytesTransferred, Long durationMillis)
focal_class.identifier: getTransferRateInMegabitsPerSecond
focal_class.modifiers: public
focal_class.parameters: (Long totalBytesTransferred, Long durationMillis)
focal_class.return: Double
focal_class.signature: Double getTransferRateInMegabitsPerSecond(Long totalBytesTransferred, Long durationMillis)
focal_method.body: public AwsParamsDto getAwsParamsDto()
      {
          // Get HTTP proxy configuration settings.
          String httpProxyHost = configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_HOST);
          Integer httpProxyPort = configurationHelper.getProperty(ConfigurationValue.HTTP_PROXY_PORT, Integer.class);
  
          // Get AWS region name.
          String awsRegionName = configurationHelper.getProperty(ConfigurationValue.AWS_REGION_NAME);
  
          // Create an AWS parameters DTO.
          AwsParamsDto awsParamsDto = new AwsParamsDto();
          awsParamsDto.setHttpProxyHost(httpProxyHost);
          awsParamsDto.setHttpProxyPort(httpProxyPort);
          awsParamsDto.setAwsRegionName(awsRegionName);
  
          return awsParamsDto;
      }
focal_method.class_method_signature: AwsHelper.getAwsParamsDto()
focal_method.full_signature: public AwsParamsDto getAwsParamsDto()
focal_method.identifier: getAwsParamsDto
focal_method.invocations: getProperty getProperty getProperty setHttpProxyHost setHttpProxyPort setAwsRegionName
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: AwsParamsDto
focal_method.signature: AwsParamsDto getAwsParamsDto()