public class DeploymentDirectoryWatcher extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected ArchiveDeployer<Application> |
applicationArchiveDeployer |
static String |
ARTIFACT_ANCHOR_SUFFIX |
static String |
CHANGE_CHECK_INTERVAL_PROPERTY |
protected static int |
DEFAULT_CHANGES_CHECK_INTERVAL_MS |
protected boolean |
dirty |
protected Log |
logger |
static org.apache.commons.io.filefilter.IOFileFilter |
ZIP_ARTIFACT_FILTER |
Constructor and Description |
---|
DeploymentDirectoryWatcher(ArchiveDeployer<Domain> domainArchiveDeployer,
ArchiveDeployer<Application> applicationArchiveDeployer,
ObservableList<Domain> domains,
ObservableList<Application> applications,
ReentrantLock deploymentLock) |
Modifier and Type | Method and Description |
---|---|
protected void |
deployExplodedApps(String[] apps) |
protected void |
deployPackedApps(String[] zips) |
<T extends Artifact> |
findArtifact(String artifactName,
ObservableList<T> artifacts) |
void |
run() |
void |
start()
Starts the process of deployment / undeployment of artifact.
|
void |
stop()
Stops the deployment scan service.
|
public static final String ARTIFACT_ANCHOR_SUFFIX
public static final String CHANGE_CHECK_INTERVAL_PROPERTY
public static final org.apache.commons.io.filefilter.IOFileFilter ZIP_ARTIFACT_FILTER
protected static final int DEFAULT_CHANGES_CHECK_INTERVAL_MS
protected final transient Log logger
protected final ArchiveDeployer<Application> applicationArchiveDeployer
protected volatile boolean dirty
public DeploymentDirectoryWatcher(ArchiveDeployer<Domain> domainArchiveDeployer, ArchiveDeployer<Application> applicationArchiveDeployer, ObservableList<Domain> domains, ObservableList<Application> applications, ReentrantLock deploymentLock)
public void start()
public void stop()
protected void deployPackedApps(String[] zips)
protected void deployExplodedApps(String[] apps)
public <T extends Artifact> T findArtifact(String artifactName, ObservableList<T> artifacts)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.