test_class.declarator: emrHelper
test_class.modifier: @Autowired
test_class.original_string: @Autowired
      EmrHelper emrHelper;
test_class.type: EmrHelper
test_class.var_name: emrHelper
test_class.file: herd-code/herd-dao/src/test/java/org/finra/herd/dao/helper/EmrHelperTest.java
test_class.identifier: EmrHelperTest
test_class.superclass: extends AbstractDaoTest
test_case.body: @Test
      public void testBuildEmrClusterInstanceFleetFromAwsResult()
      {
          ListInstanceFleetsResult listInstanceFleetsResult = null;
          assertNull(emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          listInstanceFleetsResult = new ListInstanceFleetsResult();
          assertNull(emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          String instanceId = "instance id";
          String instanceName = "instance name";
          String instanceFleetType = "instance fleet type";
          int targetOnDemandCapacity = 1;
          int targetSpotCapacity = 2;
          int provisionedOnDemandCapacity = 3;
          int provisionedSpotCapacity = 4;
  
          EmrClusterInstanceFleet expectedEmrInstanceFleet = new EmrClusterInstanceFleet();
          expectedEmrInstanceFleet.setId(instanceId);
          expectedEmrInstanceFleet.setName(instanceName);
          expectedEmrInstanceFleet.setInstanceFleetType(instanceFleetType);
          expectedEmrInstanceFleet.setTargetOnDemandCapacity(targetOnDemandCapacity);
          expectedEmrInstanceFleet.setTargetSpotCapacity(targetSpotCapacity);
          expectedEmrInstanceFleet.setProvisionedOnDemandCapacity(provisionedOnDemandCapacity);
          expectedEmrInstanceFleet.setProvisionedSpotCapacity(provisionedSpotCapacity);
  
          InstanceFleet instanceFleet = new InstanceFleet();
          instanceFleet.setId(instanceId);
          instanceFleet.setName(instanceName);
          instanceFleet.setInstanceFleetType(instanceFleetType);
          instanceFleet.setTargetOnDemandCapacity(targetOnDemandCapacity);
          instanceFleet.setTargetSpotCapacity(targetSpotCapacity);
          instanceFleet.setProvisionedSpotCapacity(provisionedSpotCapacity);
          instanceFleet.setProvisionedOnDemandCapacity(provisionedOnDemandCapacity);
  
          List<InstanceFleet> instanceFleets = new ArrayList<>();
          instanceFleets.add(null);
          instanceFleets.add(instanceFleet);
          listInstanceFleetsResult.setInstanceFleets(instanceFleets);
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          EmrClusterInstanceFleetStatus emrClusterInstanceFleetStatus = new EmrClusterInstanceFleetStatus();
          String emrClusterInstanceFleetStatus_State = "state 1";
          emrClusterInstanceFleetStatus.setState(emrClusterInstanceFleetStatus_State);
          expectedEmrInstanceFleet.setInstanceFleetStatus(emrClusterInstanceFleetStatus);
  
          InstanceFleetStatus instanceFleetStatus = new InstanceFleetStatus();
          instanceFleetStatus.setState(emrClusterInstanceFleetStatus_State);
          instanceFleet.setStatus(instanceFleetStatus);
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          String emrClusterInstanceFleetStatus_StateChangeCode = "change code 1";
          String emrClusterInstanceFleetStatus_StateChangeMsg = "change msg 1";
          InstanceFleetStateChangeReason instanceFleetStateChangeReason = new InstanceFleetStateChangeReason();
          instanceFleetStateChangeReason.setCode(emrClusterInstanceFleetStatus_StateChangeCode);
          instanceFleetStateChangeReason.setMessage(emrClusterInstanceFleetStatus_StateChangeMsg);
          instanceFleetStatus.setStateChangeReason(instanceFleetStateChangeReason);
          InstanceFleetTimeline instanceFleetTimeline = new InstanceFleetTimeline();
          java.util.Date now = Calendar.getInstance().getTime();
          instanceFleetTimeline.setCreationDateTime(now);
          instanceFleetTimeline.setReadyDateTime(now);
          instanceFleetTimeline.setEndDateTime(now);
          instanceFleetStatus.setTimeline(instanceFleetTimeline);
  
          EmrClusterInstanceFleetStateChangeReason emrClusterInstanceFleetStateChangeReason = new EmrClusterInstanceFleetStateChangeReason();
          emrClusterInstanceFleetStateChangeReason.setCode(emrClusterInstanceFleetStatus_StateChangeCode);
          emrClusterInstanceFleetStateChangeReason.setMessage(emrClusterInstanceFleetStatus_StateChangeMsg);
          emrClusterInstanceFleetStatus.setStateChangeReason(emrClusterInstanceFleetStateChangeReason);
          EmrClusterInstanceFleetTimeline emrClusterInstanceFleetTimeline = new EmrClusterInstanceFleetTimeline();
          emrClusterInstanceFleetTimeline.setCreationDateTime(HerdDateUtils.getXMLGregorianCalendarValue(now));
          emrClusterInstanceFleetTimeline.setReadyDateTime(HerdDateUtils.getXMLGregorianCalendarValue(now));
          emrClusterInstanceFleetTimeline.setEndDateTime(HerdDateUtils.getXMLGregorianCalendarValue(now));
          emrClusterInstanceFleetStatus.setTimeline(emrClusterInstanceFleetTimeline);
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          String instanceType = "instance type 1";
          int weightedCapacity = 1;
          String bidPrice = "1.0";
          double bidPricePercent = 0.8;
          boolean ebsOptimized = true;
          InstanceTypeSpecification instanceTypeSpecification = new InstanceTypeSpecification();
          instanceTypeSpecification.setInstanceType(instanceType);
          instanceTypeSpecification.setWeightedCapacity(weightedCapacity);
          instanceTypeSpecification.setBidPrice(bidPrice);
          instanceTypeSpecification.setBidPriceAsPercentageOfOnDemandPrice(bidPricePercent);
          instanceTypeSpecification.setEbsOptimized(ebsOptimized);
  
          List<InstanceTypeSpecification> instanceTypeSpecifications = new ArrayList<>();
          instanceTypeSpecifications.add(null);
          instanceTypeSpecifications.add(instanceTypeSpecification);
          instanceFleet.setInstanceTypeSpecifications(instanceTypeSpecifications);
  
          EmrClusterInstanceTypeSpecification emrClusterInstanceTypeSpecification = new EmrClusterInstanceTypeSpecification();
          emrClusterInstanceTypeSpecification.setInstanceType(instanceType);
          emrClusterInstanceTypeSpecification.setWeightedCapacity(weightedCapacity);
          emrClusterInstanceTypeSpecification.setBidPrice(bidPrice);
          emrClusterInstanceTypeSpecification.setBidPriceAsPercentageOfOnDemandPrice(bidPricePercent);
          emrClusterInstanceTypeSpecification.setEbsOptimized(ebsOptimized);
          expectedEmrInstanceFleet.setInstanceTypeSpecifications(Lists.newArrayList(emrClusterInstanceTypeSpecification));
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          EbsBlockDevice ebsBlockDevice = new EbsBlockDevice();
          String device = "device 1";
          ebsBlockDevice.setDevice(device);
          List<EbsBlockDevice> ebsBlockDevices = new ArrayList<>();
          ebsBlockDevices.add(ebsBlockDevice);
          ebsBlockDevices.add(null);
          instanceTypeSpecification.setEbsBlockDevices(ebsBlockDevices);
          EmrClusterEbsBlockDevice emrClusterEbsBlockDevice = new EmrClusterEbsBlockDevice();
          emrClusterEbsBlockDevice.setDevice(device);
          emrClusterInstanceTypeSpecification.setEbsBlockDevices(Lists.newArrayList(emrClusterEbsBlockDevice));
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          int iops = 100;
          int sizeInGB = 20;
          String volumeType = "volume type 1";
          VolumeSpecification volumeSpecification = new VolumeSpecification();
          volumeSpecification.setIops(iops);
          volumeSpecification.setSizeInGB(sizeInGB);
          volumeSpecification.setVolumeType(volumeType);
          ebsBlockDevice.setVolumeSpecification(volumeSpecification);
          EmrClusterVolumeSpecification emrClusterVolumeSpecification = new EmrClusterVolumeSpecification();
          emrClusterVolumeSpecification.setIops(iops);
          emrClusterVolumeSpecification.setSizeInGB(sizeInGB);
          emrClusterVolumeSpecification.setVolumeType(volumeType);
          emrClusterEbsBlockDevice.setVolumeSpecification(emrClusterVolumeSpecification);
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications = new InstanceFleetProvisioningSpecifications();
          instanceFleet.setLaunchSpecifications(instanceFleetProvisioningSpecifications);
          EmrClusterInstanceFleetProvisioningSpecifications emrClusterInstanceFleetProvisioningSpecifications =
              new EmrClusterInstanceFleetProvisioningSpecifications();
          expectedEmrInstanceFleet.setLaunchSpecifications(emrClusterInstanceFleetProvisioningSpecifications);
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          List<Configuration> configurations = new ArrayList<>();
          Configuration configuration = new Configuration();
          String classification = "classification 1";
          configuration.setClassification(classification);
          configurations.add(null);
          configurations.add(configuration);
          instanceTypeSpecification.setConfigurations(configurations);
          EmrClusterInstanceTypeConfiguration emrClusterInstanceTypeConfiguration = new EmrClusterInstanceTypeConfiguration();
          emrClusterInstanceTypeConfiguration.setClassification(classification);
          emrClusterInstanceTypeSpecification.setConfigurations(Lists.newArrayList(emrClusterInstanceTypeConfiguration));
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          String paramKey = "param 1";
          String paramVal = "param val 1";
          java.util.Map<String, String> map = new HashMap<>();
          map.put(paramKey, paramVal);
          configuration.setProperties(map);
          Parameter parameter = new Parameter(paramKey, paramVal);
          emrClusterInstanceTypeConfiguration.setProperties(Lists.newArrayList(parameter));
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
          int blockDurationMin = 30;
          String timeoutAction = "action 1";
          int timeoutDurationMin = 60;
  
          //to do time out action
          SpotProvisioningSpecification spotProvisioningSpecification = new SpotProvisioningSpecification();
          spotProvisioningSpecification.setBlockDurationMinutes(blockDurationMin);
          spotProvisioningSpecification.setTimeoutAction(timeoutAction);
          spotProvisioningSpecification.setTimeoutDurationMinutes(timeoutDurationMin);
          instanceFleetProvisioningSpecifications.setSpotSpecification(spotProvisioningSpecification);
  
          EmrClusterSpotProvisioningSpecification emrClusterSpotProvisioningSpecification = new EmrClusterSpotProvisioningSpecification();
          emrClusterSpotProvisioningSpecification.setBlockDurationMinutes(blockDurationMin);
          emrClusterSpotProvisioningSpecification.setTimeoutAction(timeoutAction);
          emrClusterSpotProvisioningSpecification.setTimeoutDurationMinutes(timeoutDurationMin);
          emrClusterInstanceFleetProvisioningSpecifications.setSpotSpecification(emrClusterSpotProvisioningSpecification);
  
          assertEquals(Lists.newArrayList(expectedEmrInstanceFleet), emrHelper.buildEmrClusterInstanceFleetFromAwsResult(listInstanceFleetsResult));
  
      }
test_case.class_method_signature: EmrHelperTest.testBuildEmrClusterInstanceFleetFromAwsResult()
test_case.full_signature: @Test public void testBuildEmrClusterInstanceFleetFromAwsResult()
test_case.identifier: testBuildEmrClusterInstanceFleetFromAwsResult
test_case.invocations: assertNull buildEmrClusterInstanceFleetFromAwsResult assertNull buildEmrClusterInstanceFleetFromAwsResult setId setName setInstanceFleetType setTargetOnDemandCapacity setTargetSpotCapacity setProvisionedOnDemandCapacity setProvisionedSpotCapacity setId setName setInstanceFleetType setTargetOnDemandCapacity setTargetSpotCapacity setProvisionedSpotCapacity setProvisionedOnDemandCapacity add add setInstanceFleets assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setState setInstanceFleetStatus setState setStatus assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setCode setMessage setStateChangeReason getTime getInstance setCreationDateTime setReadyDateTime setEndDateTime setTimeline setCode setMessage setStateChangeReason setCreationDateTime getXMLGregorianCalendarValue setReadyDateTime getXMLGregorianCalendarValue setEndDateTime getXMLGregorianCalendarValue setTimeline assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setInstanceType setWeightedCapacity setBidPrice setBidPriceAsPercentageOfOnDemandPrice setEbsOptimized add add setInstanceTypeSpecifications setInstanceType setWeightedCapacity setBidPrice setBidPriceAsPercentageOfOnDemandPrice setEbsOptimized setInstanceTypeSpecifications newArrayList assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setDevice add add setEbsBlockDevices setDevice setEbsBlockDevices newArrayList assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setIops setSizeInGB setVolumeType setVolumeSpecification setIops setSizeInGB setVolumeType setVolumeSpecification assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setLaunchSpecifications setLaunchSpecifications assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setClassification add add setConfigurations setClassification setConfigurations newArrayList assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult put setProperties setProperties newArrayList assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult setBlockDurationMinutes setTimeoutAction setTimeoutDurationMinutes setSpotSpecification setBlockDurationMinutes setTimeoutAction setTimeoutDurationMinutes setSpotSpecification assertEquals newArrayList buildEmrClusterInstanceFleetFromAwsResult
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuildEmrClusterInstanceFleetFromAwsResult()
focal_class.declarator: emrDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private EmrDao emrDao;
focal_class.type: EmrDao
focal_class.var_name: emrDao
focal_class.declarator: stsDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private StsDao stsDao;
focal_class.type: StsDao
focal_class.var_name: stsDao
focal_class.declarator: trustingAccountDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private TrustingAccountDaoHelper trustingAccountDaoHelper;
focal_class.type: TrustingAccountDaoHelper
focal_class.var_name: trustingAccountDaoHelper
focal_class.file: herd-code/herd-dao/src/main/java/org/finra/herd/dao/helper/EmrHelper.java
focal_class.identifier: EmrHelper
focal_class.class_method_signature: EmrHelper.buildEmrClusterName(String namespaceCd, String emrDefinitionName, String clusterName)
focal_class.full_signature: public String buildEmrClusterName(String namespaceCd, String emrDefinitionName, String clusterName)
focal_class.identifier: buildEmrClusterName
focal_class.modifiers: public
focal_class.parameters: (String namespaceCd, String emrDefinitionName, String clusterName)
focal_class.return: String
focal_class.signature: String buildEmrClusterName(String namespaceCd, String emrDefinitionName, String clusterName)
focal_class.class_method_signature: EmrHelper.getActiveEmrClusterId(String emrClusterId, String emrClusterName, String accountId)
focal_class.full_signature: public String getActiveEmrClusterId(String emrClusterId, String emrClusterName, String accountId)
focal_class.identifier: getActiveEmrClusterId
focal_class.modifiers: public
focal_class.parameters: (String emrClusterId, String emrClusterName, String accountId)
focal_class.return: String
focal_class.signature: String getActiveEmrClusterId(String emrClusterId, String emrClusterName, String accountId)
focal_class.class_method_signature: EmrHelper.getEmrParamsDtoByAccountId(String accountId)
focal_class.full_signature: public EmrParamsDto getEmrParamsDtoByAccountId(String accountId)
focal_class.identifier: getEmrParamsDtoByAccountId
focal_class.modifiers: public
focal_class.parameters: (String accountId)
focal_class.return: EmrParamsDto
focal_class.signature: EmrParamsDto getEmrParamsDtoByAccountId(String accountId)
focal_class.class_method_signature: EmrHelper.getEmrDao()
focal_class.full_signature: public EmrDao getEmrDao()
focal_class.identifier: getEmrDao
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EmrDao
focal_class.signature: EmrDao getEmrDao()
focal_class.class_method_signature: EmrHelper.setEmrDao(EmrDao emrDao)
focal_class.full_signature: public void setEmrDao(EmrDao emrDao)
focal_class.identifier: setEmrDao
focal_class.modifiers: public
focal_class.parameters: (EmrDao emrDao)
focal_class.return: void
focal_class.signature: void setEmrDao(EmrDao emrDao)
focal_class.class_method_signature: EmrHelper.getEmrHadoopJarStepConfig(String stepName, String jarLocation, String mainClass, List<String> scriptArguments, Boolean isContinueOnError)
focal_class.full_signature: public StepConfig getEmrHadoopJarStepConfig(String stepName, String jarLocation, String mainClass, List<String> scriptArguments, Boolean isContinueOnError)
focal_class.identifier: getEmrHadoopJarStepConfig
focal_class.modifiers: public
focal_class.parameters: (String stepName, String jarLocation, String mainClass, List<String> scriptArguments, Boolean isContinueOnError)
focal_class.return: StepConfig
focal_class.signature: StepConfig getEmrHadoopJarStepConfig(String stepName, String jarLocation, String mainClass, List<String> scriptArguments, Boolean isContinueOnError)
focal_class.class_method_signature: EmrHelper.getS3StagingLocation(String trustingAccountStagingBucketName)
focal_class.full_signature: public String getS3StagingLocation(String trustingAccountStagingBucketName)
focal_class.identifier: getS3StagingLocation
focal_class.modifiers: public
focal_class.parameters: (String trustingAccountStagingBucketName)
focal_class.return: String
focal_class.signature: String getS3StagingLocation(String trustingAccountStagingBucketName)
focal_class.class_method_signature: EmrHelper.isActiveEmrState(String status)
focal_class.full_signature: public boolean isActiveEmrState(String status)
focal_class.identifier: isActiveEmrState
focal_class.modifiers: public
focal_class.parameters: (String status)
focal_class.return: boolean
focal_class.signature: boolean isActiveEmrState(String status)
focal_class.class_method_signature: EmrHelper.isInstanceDefinitionsEmpty(InstanceDefinitions instanceDefinitions)
focal_class.full_signature: public boolean isInstanceDefinitionsEmpty(InstanceDefinitions instanceDefinitions)
focal_class.identifier: isInstanceDefinitionsEmpty
focal_class.modifiers: public
focal_class.parameters: (InstanceDefinitions instanceDefinitions)
focal_class.return: boolean
focal_class.signature: boolean isInstanceDefinitionsEmpty(InstanceDefinitions instanceDefinitions)
focal_class.class_method_signature: EmrHelper.getActiveEmrClusterStates()
focal_class.full_signature: private String[] getActiveEmrClusterStates()
focal_class.identifier: getActiveEmrClusterStates
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getActiveEmrClusterStates()
focal_class.class_method_signature: EmrHelper.updateEmrParamsForCrossAccountAccess(EmrParamsDto emrParamsDto, String accountId)
focal_class.full_signature: private void updateEmrParamsForCrossAccountAccess(EmrParamsDto emrParamsDto, String accountId)
focal_class.identifier: updateEmrParamsForCrossAccountAccess
focal_class.modifiers: private
focal_class.parameters: (EmrParamsDto emrParamsDto, String accountId)
focal_class.return: void
focal_class.signature: void updateEmrParamsForCrossAccountAccess(EmrParamsDto emrParamsDto, String accountId)
focal_class.class_method_signature: EmrHelper.buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)
focal_class.full_signature: public List<EmrClusterInstanceFleet> buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)
focal_class.identifier: buildEmrClusterInstanceFleetFromAwsResult
focal_class.modifiers: public
focal_class.parameters: (ListInstanceFleetsResult awsInstanceFleetsResult)
focal_class.return: List<EmrClusterInstanceFleet>
focal_class.signature: List<EmrClusterInstanceFleet> buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)
focal_class.class_method_signature: EmrHelper.getEmrClusterInstanceFleetStatus(InstanceFleetStatus instanceFleetStatus)
focal_class.full_signature: protected EmrClusterInstanceFleetStatus getEmrClusterInstanceFleetStatus(InstanceFleetStatus instanceFleetStatus)
focal_class.identifier: getEmrClusterInstanceFleetStatus
focal_class.modifiers: protected
focal_class.parameters: (InstanceFleetStatus instanceFleetStatus)
focal_class.return: EmrClusterInstanceFleetStatus
focal_class.signature: EmrClusterInstanceFleetStatus getEmrClusterInstanceFleetStatus(InstanceFleetStatus instanceFleetStatus)
focal_class.class_method_signature: EmrHelper.getLaunchSpecifications(
          InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications)
focal_class.full_signature: protected EmrClusterInstanceFleetProvisioningSpecifications getLaunchSpecifications(
          InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications)
focal_class.identifier: getLaunchSpecifications
focal_class.modifiers: protected
focal_class.parameters: (
          InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications)
focal_class.return: EmrClusterInstanceFleetProvisioningSpecifications
focal_class.signature: EmrClusterInstanceFleetProvisioningSpecifications getLaunchSpecifications(
          InstanceFleetProvisioningSpecifications instanceFleetProvisioningSpecifications)
focal_class.class_method_signature: EmrHelper.getSpotSpecification(SpotProvisioningSpecification spotProvisioningSpecification)
focal_class.full_signature: protected EmrClusterSpotProvisioningSpecification getSpotSpecification(SpotProvisioningSpecification spotProvisioningSpecification)
focal_class.identifier: getSpotSpecification
focal_class.modifiers: protected
focal_class.parameters: (SpotProvisioningSpecification spotProvisioningSpecification)
focal_class.return: EmrClusterSpotProvisioningSpecification
focal_class.signature: EmrClusterSpotProvisioningSpecification getSpotSpecification(SpotProvisioningSpecification spotProvisioningSpecification)
focal_class.class_method_signature: EmrHelper.getEbsBlockDevices(List<EbsBlockDevice> ebsBlockDevices)
focal_class.full_signature: protected List<EmrClusterEbsBlockDevice> getEbsBlockDevices(List<EbsBlockDevice> ebsBlockDevices)
focal_class.identifier: getEbsBlockDevices
focal_class.modifiers: protected
focal_class.parameters: (List<EbsBlockDevice> ebsBlockDevices)
focal_class.return: List<EmrClusterEbsBlockDevice>
focal_class.signature: List<EmrClusterEbsBlockDevice> getEbsBlockDevices(List<EbsBlockDevice> ebsBlockDevices)
focal_class.class_method_signature: EmrHelper.getVolumeSpecification(VolumeSpecification volumeSpecification)
focal_class.full_signature: protected EmrClusterVolumeSpecification getVolumeSpecification(VolumeSpecification volumeSpecification)
focal_class.identifier: getVolumeSpecification
focal_class.modifiers: protected
focal_class.parameters: (VolumeSpecification volumeSpecification)
focal_class.return: EmrClusterVolumeSpecification
focal_class.signature: EmrClusterVolumeSpecification getVolumeSpecification(VolumeSpecification volumeSpecification)
focal_class.class_method_signature: EmrHelper.getInstanceTypeSpecifications(List<InstanceTypeSpecification> awsInstanceTypeConfigs)
focal_class.full_signature: protected List<EmrClusterInstanceTypeSpecification> getInstanceTypeSpecifications(List<InstanceTypeSpecification> awsInstanceTypeConfigs)
focal_class.identifier: getInstanceTypeSpecifications
focal_class.modifiers: protected
focal_class.parameters: (List<InstanceTypeSpecification> awsInstanceTypeConfigs)
focal_class.return: List<EmrClusterInstanceTypeSpecification>
focal_class.signature: List<EmrClusterInstanceTypeSpecification> getInstanceTypeSpecifications(List<InstanceTypeSpecification> awsInstanceTypeConfigs)
focal_class.class_method_signature: EmrHelper.getConfigurations(List<Configuration> configurations)
focal_class.full_signature: protected List<EmrClusterInstanceTypeConfiguration> getConfigurations(List<Configuration> configurations)
focal_class.identifier: getConfigurations
focal_class.modifiers: protected
focal_class.parameters: (List<Configuration> configurations)
focal_class.return: List<EmrClusterInstanceTypeConfiguration>
focal_class.signature: List<EmrClusterInstanceTypeConfiguration> getConfigurations(List<Configuration> configurations)
focal_class.class_method_signature: EmrHelper.getParameterList(Map<String, String> properties)
focal_class.full_signature: protected List<Parameter> getParameterList(Map<String, String> properties)
focal_class.identifier: getParameterList
focal_class.modifiers: protected
focal_class.parameters: (Map<String, String> properties)
focal_class.return: List<Parameter>
focal_class.signature: List<Parameter> getParameterList(Map<String, String> properties)
focal_class.superclass: extends AwsHelper
focal_method.body: public List<EmrClusterInstanceFleet> buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)
      {
          List<EmrClusterInstanceFleet> emrInstanceFleets = null;
  
          if (awsInstanceFleetsResult != null && !CollectionUtils.isEmpty(awsInstanceFleetsResult.getInstanceFleets()))
          {
              emrInstanceFleets = new ArrayList<>();
  
              for (InstanceFleet awsInstanceFleet : awsInstanceFleetsResult.getInstanceFleets())
              {
                  if (awsInstanceFleet != null)
                  {
                      EmrClusterInstanceFleet emrInstanceFleet = new EmrClusterInstanceFleet();
                      emrInstanceFleet.setId(awsInstanceFleet.getId());
                      emrInstanceFleet.setName(awsInstanceFleet.getName());
                      emrInstanceFleet.setInstanceFleetType(awsInstanceFleet.getInstanceFleetType());
                      emrInstanceFleet.setTargetOnDemandCapacity(awsInstanceFleet.getTargetOnDemandCapacity());
                      emrInstanceFleet.setTargetSpotCapacity(awsInstanceFleet.getTargetSpotCapacity());
                      emrInstanceFleet.setProvisionedOnDemandCapacity(awsInstanceFleet.getProvisionedOnDemandCapacity());
                      emrInstanceFleet.setProvisionedSpotCapacity(awsInstanceFleet.getProvisionedSpotCapacity());
                      emrInstanceFleet.setInstanceTypeSpecifications(getInstanceTypeSpecifications(awsInstanceFleet.getInstanceTypeSpecifications()));
                      emrInstanceFleet.setLaunchSpecifications(getLaunchSpecifications(awsInstanceFleet.getLaunchSpecifications()));
                      emrInstanceFleet.setInstanceFleetStatus(getEmrClusterInstanceFleetStatus(awsInstanceFleet.getStatus()));
                      emrInstanceFleets.add(emrInstanceFleet);
                  }
              }
          }
  
          return emrInstanceFleets;
      }
focal_method.class_method_signature: EmrHelper.buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)
focal_method.full_signature: public List<EmrClusterInstanceFleet> buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)
focal_method.identifier: buildEmrClusterInstanceFleetFromAwsResult
focal_method.invocations: isEmpty getInstanceFleets getInstanceFleets setId getId setName getName setInstanceFleetType getInstanceFleetType setTargetOnDemandCapacity getTargetOnDemandCapacity setTargetSpotCapacity getTargetSpotCapacity setProvisionedOnDemandCapacity getProvisionedOnDemandCapacity setProvisionedSpotCapacity getProvisionedSpotCapacity setInstanceTypeSpecifications getInstanceTypeSpecifications getInstanceTypeSpecifications setLaunchSpecifications getLaunchSpecifications getLaunchSpecifications setInstanceFleetStatus getEmrClusterInstanceFleetStatus getStatus add
focal_method.modifiers: public
focal_method.parameters: (ListInstanceFleetsResult awsInstanceFleetsResult)
focal_method.return: List<EmrClusterInstanceFleet>
focal_method.signature: List<EmrClusterInstanceFleet> buildEmrClusterInstanceFleetFromAwsResult(ListInstanceFleetsResult awsInstanceFleetsResult)