public class CloudHubArtifactDeployer extends Object implements ArtifactDeployer
CloudHubClient.| Constructor and Description |
|---|
CloudHubArtifactDeployer(Deployment deployment,
CloudHubClient cloudHubClient,
DeployerLog log) |
CloudHubArtifactDeployer(Deployment deployment,
DeployerLog log) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkApplicationHasStarted()
Checks if an application in CloudHub has the
STARTED_STATUS status. |
protected void |
createApplication()
Creates the application in CloudHub.
|
protected void |
createOrUpdateApplication()
Creates or update an application in CloudHub.
|
void |
deployApplication()
Deploys an application to CloudHub.
|
void |
deployDomain() |
String |
getApplicationName()
Retrieves the application name.
|
protected Map<String,String> |
resolveProperties(Map<String,String> originalProperties,
Map<String,String> properties,
boolean overrideProperties) |
void |
setDeploymentVerification(DeploymentVerification deploymentVerification) |
protected void |
startApplication()
Starts an application in CloudHub.
|
void |
undeployApplication()
Deploys an application to CloudHub, stopping it.
|
void |
undeployDomain() |
protected void |
updateApplication()
Updates the application in CloudHub.
|
public CloudHubArtifactDeployer(Deployment deployment, DeployerLog log)
public CloudHubArtifactDeployer(Deployment deployment, CloudHubClient cloudHubClient, DeployerLog log)
public void setDeploymentVerification(DeploymentVerification deploymentVerification)
public void deployDomain()
throws DeploymentException
deployDomain in interface DomainDeployerDeploymentExceptionpublic void undeployDomain()
throws DeploymentException
undeployDomain in interface DomainDeployerDeploymentExceptionpublic void deployApplication()
throws DeploymentException
deployApplication in interface ApplicationDeployerDeploymentExceptionpublic void undeployApplication()
throws DeploymentException
undeployApplication in interface ApplicationDeployerDeploymentException - If the application does not exist or some internal error in CloudHub happenspublic String getApplicationName()
protected void createOrUpdateApplication()
throws DeploymentException
If the domain name is available it gets created. Otherwise, it tries to update the existent application.
DeploymentException - If the application is not available and cannot be updatedprotected void createApplication()
protected void updateApplication()
throws DeploymentException
DeploymentException - In case the application is not available for the current user or some other internal in CloudHub
happensprotected void startApplication()
protected void checkApplicationHasStarted()
throws DeploymentException
STARTED_STATUS status.DeploymentException - In case it timeouts while checking for the statusCopyright © 2018 MuleSoft Inc. All rights reserved.