@Service public class EmrHelperServiceImpl extends Object implements EmrHelperService
| Constructor and Description |
|---|
EmrHelperServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EmrClusterCreateDto |
emrCreateClusterAwsSpecificSteps(EmrClusterCreateRequest emrClusterCreateRequest,
EmrClusterDefinition emrClusterDefinition,
EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
EmrParamsDto emrParamsDto)
Executes S3 specific steps for EMR cluster creation.
|
EmrClusterPreCreateDto |
emrPreCreateClusterSteps(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
EmrClusterCreateRequest emrClusterCreateRequest)
Executes steps required to prepare for the EMR cluster creation.
|
void |
logEmrClusterCreation(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
EmrClusterDefinition emrClusterDefinition,
String clusterId)
Logs the EMR cluster creation event.
|
protected void |
overrideEmrClusterDefinition(EmrClusterDefinition emrClusterDefinition,
EmrClusterDefinition emrClusterDefinitionOverride)
Overrides the properties of
emrClusterDefinition with the properties of emrClusterDefinitionOverride. |
@Transactional(propagation=NOT_SUPPORTED) public EmrClusterCreateDto emrCreateClusterAwsSpecificSteps(EmrClusterCreateRequest emrClusterCreateRequest, EmrClusterDefinition emrClusterDefinition, EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, EmrParamsDto emrParamsDto)
emrCreateClusterAwsSpecificSteps in interface EmrHelperServiceemrClusterCreateRequest - The EMR cluster create requestemrClusterDefinition - the EMR cluster definitionemrClusterAlternateKeyDto - the ERM cluster alternate keyemrParamsDto - the AWS related parameters@Transactional(propagation=REQUIRES_NEW)
public EmrClusterPreCreateDto emrPreCreateClusterSteps(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
EmrClusterCreateRequest emrClusterCreateRequest)
throws Exception
emrPreCreateClusterSteps in interface EmrHelperServiceemrClusterAlternateKeyDto - the ERM cluster alternate keyemrClusterCreateRequest - The EMR cluster create requestException - Exception when the original EMR cluster definition XML is malformed@Transactional(propagation=REQUIRES_NEW)
public void logEmrClusterCreation(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
EmrClusterDefinition emrClusterDefinition,
String clusterId)
throws Exception
logEmrClusterCreation in interface EmrHelperServiceemrClusterAlternateKeyDto - the ERM cluster alternate keyemrClusterDefinition - the EMR cluster definitionclusterId - the EMR cluster IdException - Exception can occur when converting the EMR cluster definition to XMLprotected void overrideEmrClusterDefinition(EmrClusterDefinition emrClusterDefinition, EmrClusterDefinition emrClusterDefinitionOverride)
Overrides the properties of emrClusterDefinition with the properties of emrClusterDefinitionOverride.
If any property in
emrClusterDefinitionOverride is null, the property will remain unmodified.
If any property in emrClusterDefinitionOverride is not null, the property will be set.
Any list or object type properties will be shallowly overridden. That is, if a list is given in the override, the entire list will be set. Note that this is a shallow copy operation, so any modification to the override list or object will affect the definition.
This method does nothing if emrClusterDefinitionOverride is null.
emrClusterDefinition - - definition to overrideemrClusterDefinitionOverride - - the override value or nullCopyright © 2021. All rights reserved.