@Service public class EmrHelperServiceImpl extends Object implements EmrHelperService
| Constructor and Description |
|---|
EmrHelperServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EmrClusterCreateDto |
emrCreateClusterAwsSpecificSteps(EmrClusterCreateRequest request,
EmrClusterDefinition emrClusterDefinition,
EmrClusterAlternateKeyDto emrClusterAlternateKeyDto)
Executes S3 specific steps for EMR cluster creation.
|
EmrClusterDefinition |
emrPreCreateClusterSteps(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
EmrClusterCreateRequest request)
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 request, EmrClusterDefinition emrClusterDefinition, EmrClusterAlternateKeyDto emrClusterAlternateKeyDto)
emrCreateClusterAwsSpecificSteps in interface EmrHelperServicerequest - The EMR cluster create requestemrClusterDefinition - the EMR cluster definitionemrClusterAlternateKeyDto - the ERM cluster alternate key@Transactional(propagation=REQUIRES_NEW) public EmrClusterDefinition emrPreCreateClusterSteps(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, EmrClusterCreateRequest request) throws Exception
emrPreCreateClusterSteps in interface EmrHelperServiceemrClusterAlternateKeyDto - the ERM cluster alternate keyrequest - 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 © 2019. All rights reserved.