org.mule.module.launcher
Class MuleDeploymentService
java.lang.Object
org.mule.module.launcher.MuleDeploymentService
- All Implemented Interfaces:
- DeploymentListenerManager, DeploymentService
public class MuleDeploymentService
- extends Object
- implements DeploymentService
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
ANOTHER_DEPLOYMENT_OPERATION_IS_IN_PROGRESS
public static final String ANOTHER_DEPLOYMENT_OPERATION_IS_IN_PROGRESS
- See Also:
- Constant Field Values
INSTALL_OPERATION_HAS_BEEN_INTERRUPTED
public static final String INSTALL_OPERATION_HAS_BEEN_INTERRUPTED
- See Also:
- Constant Field Values
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
MuleDeploymentService
public MuleDeploymentService(PluginClassLoaderManager pluginClassLoaderManager)
start
public void start()
- Specified by:
start
in interface DeploymentService
scheduleChangeMonitor
protected void scheduleChangeMonitor(File appsDir)
stop
public void stop()
- Specified by:
stop
in interface DeploymentService
findApplication
public Application findApplication(String appName)
- Description copied from interface:
DeploymentService
- Finds an active application by name.
- Specified by:
findApplication
in interface DeploymentService
- Returns:
- null if not found
getApplications
public List<Application> getApplications()
- Description copied from interface:
DeploymentService
- Lists all deployed applications.
- Specified by:
getApplications
in interface DeploymentService
- Returns:
- immutable applications list
getZombieMap
public Map<URL,Long> getZombieMap()
- Returns:
- URL/lastModified of apps which previously failed to deploy
getDeployer
protected MuleDeployer getDeployer()
setAppFactory
public void setAppFactory(ApplicationFactory appFactory)
setDeployer
public void setDeployer(MuleDeployer deployer)
getAppFactory
public ApplicationFactory getAppFactory()
getLock
public ReentrantLock getLock()
- Description copied from interface:
DeploymentService
- Obtains the object used to synchronize the service.
- Specified by:
getLock
in interface DeploymentService
- Returns:
- a non null lock object.
onApplicationInstalled
protected void onApplicationInstalled(Application a)
undeploy
protected void undeploy(Application app)
undeploy
public void undeploy(String appName)
- Specified by:
undeploy
in interface DeploymentService
deploy
public void deploy(URL appArchiveUrl)
throws IOException
- Specified by:
deploy
in interface DeploymentService
- Throws:
IOException
addZombie
protected void addZombie(File marker)
addStartupListener
public void addStartupListener(StartupListener listener)
- Specified by:
addStartupListener
in interface DeploymentService
removeStartupListener
public void removeStartupListener(StartupListener listener)
- Specified by:
removeStartupListener
in interface DeploymentService
addDeploymentListener
public void addDeploymentListener(DeploymentListener listener)
- Specified by:
addDeploymentListener
in interface DeploymentListenerManager
removeDeploymentListener
public void removeDeploymentListener(DeploymentListener listener)
- Specified by:
removeDeploymentListener
in interface DeploymentListenerManager
Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.