public class DomainArchiveDeployer extends Object implements ArchiveDeployer<Domain>
Modifier and Type | Field and Description |
---|---|
static String |
DOMAIN_BUNDLE_APPS_FOLDER |
Constructor and Description |
---|
DomainArchiveDeployer(ArchiveDeployer<Domain> domainDeployer,
ArchiveDeployer<Application> applicationDeployer,
DeploymentService deploymentService) |
Modifier and Type | Method and Description |
---|---|
void |
deployArtifact(Domain artifact) |
void |
deployArtifact(Domain artifact,
com.google.common.base.Optional<Properties> deploymentProperties) |
Domain |
deployExplodedArtifact(String artifactDir) |
Domain |
deployPackagedArtifact(String zip) |
Domain |
deployPackagedArtifact(String zip,
com.google.common.base.Optional<Properties> deploymentProperties) |
Domain |
deployPackagedArtifact(URL artifactAchivedUrl,
com.google.common.base.Optional<Properties> deploymentProperties) |
Map<URL,Long> |
getArtifactsZombieMap() |
File |
getDeploymentDirectory() |
boolean |
isUpdatedZombieArtifact(String artifactName)
Indicates if a previously failed artifact (zombie) configuration was updated on the file system.
|
void |
redeploy(Domain artifact) |
void |
redeploy(Domain artifact,
com.google.common.base.Optional<Properties> deploymentProperties) |
void |
setArtifactFactory(ArtifactFactory<Domain> artifactFactory) |
void |
setDeploymentListener(CompositeDeploymentListener deploymentListener) |
void |
undeployArtifact(String artifactId)
Undeploys a domain.
|
void |
undeployArtifactWithoutUninstall(Domain artifact) |
public static final String DOMAIN_BUNDLE_APPS_FOLDER
public DomainArchiveDeployer(ArchiveDeployer<Domain> domainDeployer, ArchiveDeployer<Application> applicationDeployer, DeploymentService deploymentService)
public Domain deployPackagedArtifact(String zip, com.google.common.base.Optional<Properties> deploymentProperties) throws DeploymentException
deployPackagedArtifact
in interface ArchiveDeployer<Domain>
DeploymentException
public Domain deployExplodedArtifact(String artifactDir) throws DeploymentException
deployExplodedArtifact
in interface ArchiveDeployer<Domain>
DeploymentException
public boolean isUpdatedZombieArtifact(String artifactName)
ArchiveDeployer
isUpdatedZombieArtifact
in interface ArchiveDeployer<Domain>
artifactName
- name of the artifact to check. Non empty.public Domain deployPackagedArtifact(URL artifactAchivedUrl, com.google.common.base.Optional<Properties> deploymentProperties)
deployPackagedArtifact
in interface ArchiveDeployer<Domain>
public void undeployArtifact(String artifactId)
undeployArtifact
in interface ArchiveDeployer<Domain>
artifactId
- domain name to undeploypublic File getDeploymentDirectory()
getDeploymentDirectory
in interface ArchiveDeployer<Domain>
public void setDeploymentListener(CompositeDeploymentListener deploymentListener)
setDeploymentListener
in interface ArchiveDeployer<Domain>
public void redeploy(Domain artifact) throws DeploymentException
redeploy
in interface ArchiveDeployer<Domain>
DeploymentException
public Map<URL,Long> getArtifactsZombieMap()
getArtifactsZombieMap
in interface ArchiveDeployer<Domain>
public void setArtifactFactory(ArtifactFactory<Domain> artifactFactory)
setArtifactFactory
in interface ArchiveDeployer<Domain>
public void undeployArtifactWithoutUninstall(Domain artifact)
undeployArtifactWithoutUninstall
in interface ArchiveDeployer<Domain>
public void deployArtifact(Domain artifact)
deployArtifact
in interface ArchiveDeployer<Domain>
public void redeploy(Domain artifact, com.google.common.base.Optional<Properties> deploymentProperties) throws DeploymentException
redeploy
in interface ArchiveDeployer<Domain>
DeploymentException
public void deployArtifact(Domain artifact, com.google.common.base.Optional<Properties> deploymentProperties) throws DeploymentException
deployArtifact
in interface ArchiveDeployer<Domain>
DeploymentException
public Domain deployPackagedArtifact(String zip) throws DeploymentException
deployPackagedArtifact
in interface ArchiveDeployer<Domain>
DeploymentException
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.