public class StandaloneArtifactDeployer extends Object implements ArtifactDeployer
MuleProcessController.| Constructor and Description |
|---|
StandaloneArtifactDeployer(Deployment deployment,
DeployerLog log)
Creates a
StandaloneArtifactDeployer based on the deployment configuration and the log. |
StandaloneArtifactDeployer(Deployment deployment,
MuleProcessController controller,
DeployerLog log,
Prober prober) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDomainFromstandaloneDeployment(StandaloneDeployment configuration)
Deploys the domain specified in the deployment configuration.
|
void |
deployApplication()
Deploys a mule application to Standalone.
|
void |
deployDomain()
Deploys a mule domain to Standalone.
|
protected void |
renameApplicationToApplicationName()
Renames the file to be deployed have the same name that the application appended by ".jar".
|
String |
toString() |
protected void |
undeploy(File muleHome)
Undeploys a mule application a standalone instance running in the specified .
|
void |
undeployApplication()
Undeploys a mule application from Standalone.
|
void |
undeployDomain() |
void |
verifyMuleIsStarted()
Checks if there is a mule instance running in the folder defined in the mule controller.
|
void |
waitForDeployments()
Waits for the deployment to be done.
|
public StandaloneArtifactDeployer(Deployment deployment, MuleProcessController controller, DeployerLog log, Prober prober)
public StandaloneArtifactDeployer(Deployment deployment, DeployerLog log) throws DeploymentException
StandaloneArtifactDeployer based on the deployment configuration and the log.deployment - The deployment configurationlog - A log to output information and errorsDeploymentExceptionpublic void waitForDeployments()
throws DeploymentException
DeploymentException - If the artifact is not running after the deploymentTimeout time spanprotected void renameApplicationToApplicationName()
throws DeploymentException
DeploymentException - If it fails to rename the application due to an IOExceptionpublic void verifyMuleIsStarted()
throws MuleControllerException
MuleControllerException - If there is no mule instance running in the specified directorypublic void addDomainFromstandaloneDeployment(StandaloneDeployment configuration) throws DeploymentException
configuration - A deployment configurationDeploymentException - If there is no domain defined in the deployment configurationpublic 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 mule home defined in the deployment configuration does not existprotected void undeploy(File muleHome) throws DeploymentException
muleHome - The mule home of the mule instanceDeploymentException - In case the artifact can not be found or some IOException occursCopyright © 2019 MuleSoft Inc. All rights reserved.