public class DefaultArchiveDeployer<T extends DeployableArtifact> extends Object implements ArchiveDeployer<T>
| Modifier and Type | Field and Description |
|---|---|
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,
Supplier<org.mule.runtime.api.scheduler.SchedulerService> artifactStartExecutorSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
deployArtifact(T artifact,
Optional<Properties> deploymentProperties) |
void |
deployArtifact(T artifact,
Optional<Properties> deploymentProperties,
Optional<Properties> artifactStatusProperties) |
T |
deployExplodedArtifact(String artifactDir,
Optional<Properties> deploymentProperties) |
T |
deployExplodedArtifact(String artifactDir,
Optional<Properties> deploymentProperties,
Optional<Properties> artifactStatusProperties) |
T |
deployPackagedArtifact(String zip,
Optional<Properties> deploymentProperties) |
T |
deployPackagedArtifact(URI artifactAchivedUri,
Optional<Properties> appProperties) |
void |
doNotPersistArtifactStop(T artifact) |
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(String artifactName,
Optional<Properties> deploymentProperties) |
void |
setArtifactFactory(ArtifactFactory<T> artifactFactory) |
void |
setDeploymentListener(DeploymentListener deploymentListener) |
void |
undeployArtifact(String artifactId) |
protected void |
undeployArtifact(String artifactId,
boolean removeData) |
void |
undeployArtifactWithoutUninstall(T artifact) |
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, Supplier<org.mule.runtime.api.scheduler.SchedulerService> artifactStartExecutorSupplier)
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>protected void undeployArtifact(String artifactId, boolean removeData)
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 T deployPackagedArtifact(URI artifactAchivedUri, Optional<Properties> appProperties) throws DeploymentException
deployPackagedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>DeploymentExceptionpublic void redeploy(String artifactName, 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 void deployArtifact(T artifact, Optional<Properties> deploymentProperties, Optional<Properties> artifactStatusProperties) throws DeploymentException
DeploymentExceptionpublic T deployExplodedArtifact(String artifactDir, Optional<Properties> deploymentProperties)
deployExplodedArtifact in interface ArchiveDeployer<T extends DeployableArtifact>public T deployExplodedArtifact(String artifactDir, Optional<Properties> deploymentProperties, Optional<Properties> artifactStatusProperties)
public void doNotPersistArtifactStop(T artifact)
doNotPersistArtifactStop in interface ArchiveDeployer<T extends DeployableArtifact>Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.