public class DefaultArchiveDeployer<T extends DeployableArtifact> extends Object implements ArchiveDeployer<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFACT_NAME_PROPERTY |
static String |
JAR_FILE_SUFFIX |
| Constructor and Description |
|---|
DefaultArchiveDeployer(ArtifactDeployer deployer,
ArtifactFactory artifactFactory,
ObservableList<T> artifacts,
ArtifactDeploymentTemplate deploymentTemplate,
MuleContextListenerFactory muleContextListenerFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
deployArtifact(T artifact) |
T |
deployExplodedArtifact(String artifactDir) |
T |
deployPackagedArtifact(String zip) |
T |
deployPackagedArtifact(URI artifactAchivedUri) |
Map<String,Map<URI,Long>> |
getArtifactsZombieMap() |
File |
getDeploymentDirectory() |
boolean |
isUpdatedZombieArtifact(String artifactName)
Indicates if a previously failed artifact (zombie) configuration was updated on the file system.
|
void |
preTrackArtifact(T artifact) |
void |
redeploy(T artifact) |
void |
setArtifactFactory(ArtifactFactory<T> artifactFactory) |
void |
setDeploymentListener(CompositeDeploymentListener deploymentListener) |
void |
undeployArtifact(String artifactId) |
void |
undeployArtifactWithoutUninstall(T artifact) |
public static final String ARTIFACT_NAME_PROPERTY
public static final String JAR_FILE_SUFFIX
public DefaultArchiveDeployer(ArtifactDeployer deployer, ArtifactFactory artifactFactory, ObservableList<T> artifacts, ArtifactDeploymentTemplate deploymentTemplate, MuleContextListenerFactory muleContextListenerFactory)
public T deployPackagedArtifact(String zip) throws DeploymentException
deployPackagedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic T deployExplodedArtifact(String artifactDir) throws DeploymentException
deployExplodedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic boolean isUpdatedZombieArtifact(String artifactName)
ArchiveDeployerisUpdatedZombieArtifact in interface ArchiveDeployer<T extends DeployableArtifact>artifactName - name of the artifact to check. Non empty.public void undeployArtifact(String artifactId)
undeployArtifact in interface ArchiveDeployer<T extends DeployableArtifact>public File getDeploymentDirectory()
getDeploymentDirectory in interface ArchiveDeployer<T extends DeployableArtifact>public T deployPackagedArtifact(URI artifactAchivedUri) throws DeploymentException
deployPackagedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic Map<String,Map<URI,Long>> getArtifactsZombieMap()
getArtifactsZombieMap in interface ArchiveDeployer<T extends DeployableArtifact>public void setArtifactFactory(ArtifactFactory<T> artifactFactory)
setArtifactFactory in interface ArchiveDeployer<T extends DeployableArtifact>public void undeployArtifactWithoutUninstall(T artifact)
undeployArtifactWithoutUninstall in interface ArchiveDeployer<T extends DeployableArtifact>public void setDeploymentListener(CompositeDeploymentListener deploymentListener)
setDeploymentListener in interface ArchiveDeployer<T extends DeployableArtifact>public void deployArtifact(T artifact) throws DeploymentException
deployArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic void preTrackArtifact(T artifact)
public void redeploy(T artifact) throws DeploymentException
redeploy in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.