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 |
static String |
ZIP_FILE_SUFFIX |
| Constructor and Description |
|---|
DefaultArchiveDeployer(ArtifactDeployer deployer,
AbstractDeployableArtifactFactory artifactFactory,
ObservableList<T> artifacts,
ArtifactDeploymentTemplate deploymentTemplate,
MuleContextListenerFactory muleContextListenerFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
deployArtifact(T artifact,
Optional<Properties> deploymentProperties) |
T |
deployExplodedArtifact(String artifactDir,
Optional<Properties> deploymentProperties) |
T |
deployPackagedArtifact(String zip,
Optional<Properties> deploymentProperties) |
T |
deployPackagedArtifact(URI artifactAchivedUri,
Optional<Properties> appProperties) |
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,
Optional<Properties> deploymentProperties) |
void |
setArtifactFactory(ArtifactFactory<T> artifactFactory) |
void |
setDeploymentListener(DeploymentListener deploymentListener) |
void |
undeployArtifact(String artifactId) |
void |
undeployArtifactWithoutUninstall(T artifact) |
public static final String ARTIFACT_NAME_PROPERTY
public static final String JAR_FILE_SUFFIX
public static final String ZIP_FILE_SUFFIX
public DefaultArchiveDeployer(ArtifactDeployer deployer, AbstractDeployableArtifactFactory artifactFactory, ObservableList<T> artifacts, ArtifactDeploymentTemplate deploymentTemplate, MuleContextListenerFactory muleContextListenerFactory)
public 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 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(DeploymentListener deploymentListener)
setDeploymentListener in interface ArchiveDeployer<T extends DeployableArtifact>public void preTrackArtifact(T artifact)
public T deployPackagedArtifact(String zip, Optional<Properties> deploymentProperties) throws DeploymentException
deployPackagedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic void redeploy(T artifact, Optional<Properties> deploymentProperties) throws DeploymentException
redeploy in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic void deployArtifact(T artifact, Optional<Properties> deploymentProperties) throws DeploymentException
deployArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic T deployPackagedArtifact(URI artifactAchivedUri, Optional<Properties> appProperties) throws DeploymentException
deployPackagedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic T deployExplodedArtifact(String artifactDir, Optional<Properties> deploymentProperties)
deployExplodedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.