@Service @Transactional(value="herdTransactionManager") public class EmrServiceImpl extends Object implements EmrService
| Constructor and Description |
|---|
EmrServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EmrMasterSecurityGroup |
addSecurityGroupsToClusterMaster(EmrMasterSecurityGroupAddRequest request)
Adds security groups to the master node of an existing EMR Cluster.
|
protected EmrMasterSecurityGroup |
addSecurityGroupsToClusterMasterImpl(EmrMasterSecurityGroupAddRequest request)
Adds security groups to the master node of an existing EMR Cluster.
|
Object |
addStepToCluster(Object request)
Adds step to an existing EMR Cluster.
|
protected Object |
addStepToClusterImpl(Object request)
Adds step to an existing EMR Cluster.
|
EmrCluster |
createCluster(EmrClusterCreateRequest request)
Creates a new EMR Cluster.
|
protected EmrCluster |
createClusterImpl(EmrClusterCreateRequest request)
Creates a new EMR cluster based on the given request if the cluster with the given name does not already exist.
|
EmrCluster |
getCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
String emrClusterId,
String emrStepId,
boolean verbose,
String accountId,
Boolean retrieveInstanceFleets)
Gets details of an existing EMR Cluster.
|
protected EmrCluster |
getClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
String emrClusterId,
String emrStepId,
boolean verbose,
String accountId,
Boolean retrieveInstanceFleets)
Gets details of an existing EMR Cluster.
|
EmrCluster |
terminateCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
boolean overrideTerminationProtection,
String emrClusterId,
String accountId)
Terminates the EMR Cluster.
|
protected EmrCluster |
terminateClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto,
boolean overrideTerminationProtection,
String emrClusterId,
String accountId)
Terminates the EMR Cluster.
|
@NamespacePermission(fields="#emrClusterAlternateKeyDto?.namespace", permissions=READ) @Transactional(propagation=REQUIRES_NEW) public EmrCluster getCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, String emrClusterId, String emrStepId, boolean verbose, String accountId, Boolean retrieveInstanceFleets) throws Exception
getCluster in interface EmrServiceemrClusterAlternateKeyDto - the EMR cluster alternate keyemrClusterId - the id of the cluster to get detailsemrStepId - the step id of the step to get detailsverbose - parameter for whether to return detailed informationaccountId - the optional AWS account that EMR cluster is running inretrieveInstanceFleets - parameter for whether to retrieve instance fleetsException - if there were any errorsprotected EmrCluster getClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, String emrClusterId, String emrStepId, boolean verbose, String accountId, Boolean retrieveInstanceFleets)
emrClusterAlternateKeyDto - the EMR cluster alternate keyemrClusterId - the cluster id of the cluster to get detailsemrStepId - the step id of the step to get detailsverbose - parameter for whether to return detailed informationaccountId - the optional AWS account that EMR cluster is running inretrieveInstanceFleets - parameter for whether to retrieve instance fleets@NamespacePermission(fields="#request?.namespace", permissions=EXECUTE) @Transactional(propagation=NOT_SUPPORTED) public EmrCluster createCluster(EmrClusterCreateRequest request) throws Exception
createCluster in interface EmrServicerequest - the EMR cluster create requestException - if there were any errors while creating the clusterprotected EmrCluster createClusterImpl(EmrClusterCreateRequest request) throws Exception
Creates a new EMR cluster based on the given request if the cluster with the given name does not already exist. If the cluster already exist, returns the information about the existing cluster.
The request must contain:
The request may optionally contain:
true, no calls to AWS will occur, but validations and override will. Defaults to false.A successful response will contain:
null when dry run flag is true.null when dry run flag is truefalse.null if the
cluster was not created.Notes:
request - - EmrClusterCreateRequest The EMR cluster create requestEmrCluster the created EMR cluster objectException - when the original EMR cluster definition XML is malformed@NamespacePermission(fields="#emrClusterAlternateKeyDto?.namespace", permissions=EXECUTE) @Transactional(propagation=REQUIRES_NEW) public EmrCluster terminateCluster(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, boolean overrideTerminationProtection, String emrClusterId, String accountId) throws Exception
terminateCluster in interface EmrServiceemrClusterAlternateKeyDto - the EMR cluster alternate keyoverrideTerminationProtection - parameter for whether to override termination protectionemrClusterId - the id of the clusteraccountId - the optional AWS account that EMR cluster is running inException - if there were any errors while terminating the clusterprotected EmrCluster terminateClusterImpl(EmrClusterAlternateKeyDto emrClusterAlternateKeyDto, boolean overrideTerminationProtection, String emrClusterId, String accountId)
emrClusterAlternateKeyDto - the EMR cluster alternate keyoverrideTerminationProtection - parameter for whether to override termination protectionemrClusterId - The EMR cluster IDaccountId - The account Id@NamespacePermission(fields="#request?.namespace", permissions=EXECUTE) @Transactional(propagation=REQUIRES_NEW) public Object addStepToCluster(Object request) throws Exception
addStepToCluster in interface EmrServicerequest - the EMR steps add requestException - if there were any errors while adding a step to the cluster.protected Object addStepToClusterImpl(Object request) throws Exception
request - the EMR steps add requestException - if there were any errors while adding a step to the cluster.@NamespacePermission(fields="#request?.namespace", permissions=WRITE) @Transactional(propagation=REQUIRES_NEW) public EmrMasterSecurityGroup addSecurityGroupsToClusterMaster(EmrMasterSecurityGroupAddRequest request) throws Exception
addSecurityGroupsToClusterMaster in interface EmrServicerequest - the EMR master security group add requestException - if there were any errors adding the security groups to the cluster masterprotected EmrMasterSecurityGroup addSecurityGroupsToClusterMasterImpl(EmrMasterSecurityGroupAddRequest request) throws Exception
request - the EMR master security group add requestException - if there were any errors adding the security groups to the cluster master.Copyright © 2019. All rights reserved.