org.mule.module.launcher
Class DomainArchiveDeployer

java.lang.Object
  extended by org.mule.module.launcher.DomainArchiveDeployer
All Implemented Interfaces:
ArchiveDeployer<Domain>

public class DomainArchiveDeployer
extends Object
implements ArchiveDeployer<Domain>

Archive deployer for domains.

Knows how to deploy / undeploy a domain and a domain bundle (zip with domain + domains apps).


Field Summary
static String DOMAIN_BUNDLE_APPS_FOLDER
           
 
Constructor Summary
DomainArchiveDeployer(ArchiveDeployer<Domain> domainDeployer, ArchiveDeployer<Application> applicationDeployer, DeploymentService deploymentService)
           
 
Method Summary
 Domain deployExplodedArtifact(String artifactDir)
           
 Domain deployPackagedArtifact(String zip)
           
 Domain deployPackagedArtifact(URL artifactAchivedUrl)
           
 Map<URL,Long> getArtifactsZombieMap()
           
 File getDeploymentDirectory()
           
 void redeploy(Domain artifact)
           
 void setArtifactFactory(ArtifactFactory<Domain> artifactFactory)
           
 void setDeploymentListener(CompositeDeploymentListener deploymentListener)
           
 void undeployArtifact(String artifactId)
          Undeploys a domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOMAIN_BUNDLE_APPS_FOLDER

public static final String DOMAIN_BUNDLE_APPS_FOLDER
See Also:
Constant Field Values
Constructor Detail

DomainArchiveDeployer

public DomainArchiveDeployer(ArchiveDeployer<Domain> domainDeployer,
                             ArchiveDeployer<Application> applicationDeployer,
                             DeploymentService deploymentService)
Method Detail

deployPackagedArtifact

public Domain deployPackagedArtifact(String zip)
                              throws DeploymentException
Specified by:
deployPackagedArtifact in interface ArchiveDeployer<Domain>
Throws:
DeploymentException

deployExplodedArtifact

public Domain deployExplodedArtifact(String artifactDir)
                              throws DeploymentException
Specified by:
deployExplodedArtifact in interface ArchiveDeployer<Domain>
Throws:
DeploymentException

deployPackagedArtifact

public Domain deployPackagedArtifact(URL artifactAchivedUrl)
Specified by:
deployPackagedArtifact in interface ArchiveDeployer<Domain>

undeployArtifact

public void undeployArtifact(String artifactId)
Undeploys a domain.

Before undeploying the domain it undeploys the applications associated.

Specified by:
undeployArtifact in interface ArchiveDeployer<Domain>
Parameters:
artifactId - domain name to undeploy

getDeploymentDirectory

public File getDeploymentDirectory()
Specified by:
getDeploymentDirectory in interface ArchiveDeployer<Domain>

setDeploymentListener

public void setDeploymentListener(CompositeDeploymentListener deploymentListener)
Specified by:
setDeploymentListener in interface ArchiveDeployer<Domain>

redeploy

public void redeploy(Domain artifact)
Specified by:
redeploy in interface ArchiveDeployer<Domain>

getArtifactsZombieMap

public Map<URL,Long> getArtifactsZombieMap()
Specified by:
getArtifactsZombieMap in interface ArchiveDeployer<Domain>

setArtifactFactory

public void setArtifactFactory(ArtifactFactory<Domain> artifactFactory)
Specified by:
setArtifactFactory in interface ArchiveDeployer<Domain>


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.