org.mule.module.launcher
Class ArchiveDeployer<T extends Artifact>

java.lang.Object
  extended by org.mule.module.launcher.ArchiveDeployer<T>

public class ArchiveDeployer<T extends Artifact>
extends Object

Deployer of an artifact within mule container. - Keeps track of deployed artifacts - Avoid already deployed artifacts to be redeployed - Deploys, undeploys, redeploys packaged and exploded artifacts


Field Summary
static String ANOTHER_DEPLOYMENT_OPERATION_IS_IN_PROGRESS
           
static String ARTIFACT_NAME_PROPERTY
           
static String INSTALL_OPERATION_HAS_BEEN_INTERRUPTED
           
static String ZIP_FILE_SUFFIX
           
 
Constructor Summary
ArchiveDeployer(ArtifactDeployer deployer, ArtifactFactory artifactFactory, ObservableList<T> artifacts, ReentrantLock lock)
           
 
Method Summary
 void deployExplodedArtifact(String artifactDir)
           
 void deployPackagedArtifact(String zip)
           
 void deployPackagedArtifact(URL artifactAchivedUrl)
           
 void redeploy(T artifact)
           
 void setDeploymentListener(CompositeDeploymentListener deploymentListener)
           
 void undeployArtifact(String artifactDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARTIFACT_NAME_PROPERTY

public static final String ARTIFACT_NAME_PROPERTY
See Also:
Constant Field Values

ZIP_FILE_SUFFIX

public static final String ZIP_FILE_SUFFIX
See Also:
Constant Field Values

ANOTHER_DEPLOYMENT_OPERATION_IS_IN_PROGRESS

public static final String ANOTHER_DEPLOYMENT_OPERATION_IS_IN_PROGRESS
See Also:
Constant Field Values

INSTALL_OPERATION_HAS_BEEN_INTERRUPTED

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

ArchiveDeployer

public ArchiveDeployer(ArtifactDeployer deployer,
                       ArtifactFactory artifactFactory,
                       ObservableList<T> artifacts,
                       ReentrantLock lock)
Method Detail

deployPackagedArtifact

public void deployPackagedArtifact(String zip)
                            throws DeploymentException
Throws:
DeploymentException

deployExplodedArtifact

public void deployExplodedArtifact(String artifactDir)
                            throws DeploymentException
Throws:
DeploymentException

undeployArtifact

public void undeployArtifact(String artifactDir)

deployPackagedArtifact

public void deployPackagedArtifact(URL artifactAchivedUrl)
                            throws DeploymentException
Throws:
DeploymentException

setDeploymentListener

public void setDeploymentListener(CompositeDeploymentListener deploymentListener)

redeploy

public void redeploy(T artifact)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.