org.mule.module.launcher
Class DefaultArchiveDeployer<T extends Artifact>
java.lang.Object
org.mule.module.launcher.DefaultArchiveDeployer<T>
- All Implemented Interfaces:
- ArchiveDeployer<T>
public class DefaultArchiveDeployer<T extends Artifact>
- extends Object
- implements ArchiveDeployer<T>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DefaultArchiveDeployer
public DefaultArchiveDeployer(ArtifactDeployer deployer,
ArtifactFactory artifactFactory,
ObservableList<T> artifacts,
ReentrantLock lock)
deployPackagedArtifact
public T deployPackagedArtifact(String zip)
throws DeploymentException
- Specified by:
deployPackagedArtifact in interface ArchiveDeployer<T extends Artifact>
- Throws:
DeploymentException
deployExplodedArtifact
public T deployExplodedArtifact(String artifactDir)
throws DeploymentException
- Specified by:
deployExplodedArtifact in interface ArchiveDeployer<T extends Artifact>
- Throws:
DeploymentException
undeployArtifact
public void undeployArtifact(String artifactId)
- Specified by:
undeployArtifact in interface ArchiveDeployer<T extends Artifact>
getDeploymentDirectory
public File getDeploymentDirectory()
- Specified by:
getDeploymentDirectory in interface ArchiveDeployer<T extends Artifact>
deployPackagedArtifact
public T deployPackagedArtifact(URL artifactAchivedUrl)
throws DeploymentException
- Specified by:
deployPackagedArtifact in interface ArchiveDeployer<T extends Artifact>
- Throws:
DeploymentException
getArtifactsZombieMap
public Map<URL,Long> getArtifactsZombieMap()
- Specified by:
getArtifactsZombieMap in interface ArchiveDeployer<T extends Artifact>
setArtifactFactory
public void setArtifactFactory(ArtifactFactory<T> artifactFactory)
- Specified by:
setArtifactFactory in interface ArchiveDeployer<T extends Artifact>
setDeploymentListener
public void setDeploymentListener(CompositeDeploymentListener deploymentListener)
- Specified by:
setDeploymentListener in interface ArchiveDeployer<T extends Artifact>
redeploy
public void redeploy(T artifact)
- Specified by:
redeploy in interface ArchiveDeployer<T extends Artifact>
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.