org.mule.module.launcher
Class DeploymentService
java.lang.Object
org.mule.module.launcher.DeploymentService
public class DeploymentService
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APP_ANCHOR_SUFFIX
public static final String APP_ANCHOR_SUFFIX
- See Also:
- Constant Field Values
ZIP_FILE_SUFFIX
public static final String ZIP_FILE_SUFFIX
- See Also:
- Constant Field Values
ZIP_APPS_FILTER
public static final org.apache.commons.io.filefilter.IOFileFilter ZIP_APPS_FILTER
DEFAULT_CHANGES_CHECK_INTERVAL_MS
protected static final int DEFAULT_CHANGES_CHECK_INTERVAL_MS
- See Also:
- Constant Field Values
appDirMonitorTimer
protected ScheduledExecutorService appDirMonitorTimer
logger
protected final transient Log logger
deployer
protected MuleDeployer deployer
appFactory
protected ApplicationFactory appFactory
DeploymentService
public DeploymentService()
start
public void start()
scheduleChangeMonitor
protected void scheduleChangeMonitor(File appsDir)
stop
public void stop()
findApplication
public Application findApplication(String appName)
- Find an active application.
- Returns:
- null if not found
getApplications
public List<Application> getApplications()
- Returns:
- immutable applications list
getZombieMap
public Map<URL,Long> getZombieMap()
- Returns:
- URL/lastModified of apps which previously failed to deploy
getDeployer
protected MuleDeployer getDeployer()
setDeployer
public void setDeployer(MuleDeployer deployer)
setAppFactory
public void setAppFactory(ApplicationFactory appFactory)
getAppFactory
public ApplicationFactory getAppFactory()
getLock
public ReentrantLock getLock()
onApplicationInstalled
public void onApplicationInstalled(Application a)
undeploy
protected void undeploy(Application app)
undeploy
public void undeploy(String appName)
deploy
public void deploy(URL appArchiveUrl)
throws IOException
- Throws:
IOException
addZombie
protected void addZombie(URL appArchiveUrl)
addStartupListener
public void addStartupListener(DeploymentService.StartupListener listener)
removeStartupListener
public void removeStartupListener(DeploymentService.StartupListener listener)
addDeploymentListener
public void addDeploymentListener(DeploymentListener listener)
removeDeploymentListener
public void removeDeploymentListener(DeploymentListener listener)
fireOnDeploymentStart
protected void fireOnDeploymentStart(String appName)
- Notifies all deployment listeners that the deploy for a given application
has just started.
- Parameters:
appName
- the name of the application being deployed.
fireOnDeploymentSuccess
protected void fireOnDeploymentSuccess(String appName)
- Notifies all deployment listeners that the deploy for a given application
has successfully finished.
- Parameters:
appName
- the name of the deployed application.
fireOnDeploymentFailure
protected void fireOnDeploymentFailure(String appName,
Throwable cause)
- Notifies all deployment listeners that the deploy for a given application
has finished with a failure.
- Parameters:
appName
- the name of the deployed application.cause
- the cause of the deployment failure.
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.