public class DefaultArchiveDeployer<T extends Artifact> extends Object implements ArchiveDeployer<T>
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACT_NAME_PROPERTY |
static String |
ZIP_FILE_SUFFIX |
Constructor and Description |
---|
DefaultArchiveDeployer(ArtifactDeployer deployer,
ArtifactFactory artifactFactory,
ObservableList<T> artifacts,
ArtifactDeploymentTemplate deploymentTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
deployArtifact(T artifact) |
T |
deployExplodedArtifact(String artifactDir) |
T |
deployPackagedArtifact(String zip) |
T |
deployPackagedArtifact(URL artifactAchivedUrl) |
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 |
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 ZIP_FILE_SUFFIX
public DefaultArchiveDeployer(ArtifactDeployer deployer, ArtifactFactory artifactFactory, ObservableList<T> artifacts, ArtifactDeploymentTemplate deploymentTemplate)
public T deployPackagedArtifact(String zip) throws DeploymentException
deployPackagedArtifact
in interface ArchiveDeployer<T extends Artifact>
DeploymentException
public T deployExplodedArtifact(String artifactDir) throws DeploymentException
deployExplodedArtifact
in interface ArchiveDeployer<T extends Artifact>
DeploymentException
public boolean isUpdatedZombieArtifact(String artifactName)
ArchiveDeployer
isUpdatedZombieArtifact
in interface ArchiveDeployer<T extends Artifact>
artifactName
- name of the artifact to check. Non empty.public void undeployArtifact(String artifactId)
undeployArtifact
in interface ArchiveDeployer<T extends Artifact>
public File getDeploymentDirectory()
getDeploymentDirectory
in interface ArchiveDeployer<T extends Artifact>
public T deployPackagedArtifact(URL artifactAchivedUrl) throws DeploymentException
deployPackagedArtifact
in interface ArchiveDeployer<T extends Artifact>
DeploymentException
public Map<URL,Long> getArtifactsZombieMap()
getArtifactsZombieMap
in interface ArchiveDeployer<T extends Artifact>
public void setArtifactFactory(ArtifactFactory<T> artifactFactory)
setArtifactFactory
in interface ArchiveDeployer<T extends Artifact>
public void undeployArtifactWithoutUninstall(T artifact)
undeployArtifactWithoutUninstall
in interface ArchiveDeployer<T extends Artifact>
public void setDeploymentListener(CompositeDeploymentListener deploymentListener)
setDeploymentListener
in interface ArchiveDeployer<T extends Artifact>
public void deployArtifact(T artifact) throws DeploymentException
deployArtifact
in interface ArchiveDeployer<T extends Artifact>
DeploymentException
public void preTrackArtifact(T artifact)
public void redeploy(T artifact) throws DeploymentException
redeploy
in interface ArchiveDeployer<T extends Artifact>
DeploymentException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.