org.mule.module.launcher
Class DeploymentService

java.lang.Object
  extended by org.mule.module.launcher.DeploymentService

public class DeploymentService
extends Object


Nested Class Summary
protected  class DeploymentService.AppDirWatcher
          Not thread safe.
static interface DeploymentService.StartupListener
           
 
Field Summary
static String ANOTHER_DEPLOYMENT_OPERATION_IS_IN_PROGRESS
           
static String APP_ANCHOR_SUFFIX
           
protected  ScheduledExecutorService appDirMonitorTimer
           
protected  ApplicationFactory appFactory
           
protected static int DEFAULT_CHANGES_CHECK_INTERVAL_MS
           
protected  MuleDeployer deployer
           
static String INSTALL_OPERATION_HAS_BEEN_INTERRUPTED
           
protected  Log logger
           
static IOFileFilter ZIP_APPS_FILTER
           
static String ZIP_FILE_SUFFIX
           
 
Constructor Summary
DeploymentService(Map<Class<? extends MuleCoreExtension>,MuleCoreExtension> coreExtensions)
           
 
Method Summary
 void addDeploymentListener(DeploymentListener listener)
           
 void addStartupListener(DeploymentService.StartupListener listener)
           
protected  void addZombie(File marker)
           
 void deploy(URL appArchiveUrl)
           
 Application findApplication(String appName)
          Find an active application.
 ApplicationFactory getAppFactory()
           
 List<Application> getApplications()
           
protected  MuleDeployer getDeployer()
           
 ReentrantLock getLock()
           
 Map<URL,Long> getZombieMap()
           
 void onApplicationInstalled(Application a)
           
 void removeDeploymentListener(DeploymentListener listener)
           
 void removeStartupListener(DeploymentService.StartupListener listener)
           
protected  void scheduleChangeMonitor(File appsDir)
           
 void setDeployer(MuleDeployer deployer)
           
 void start()
           
 void stop()
           
protected  void undeploy(Application app)
           
 void undeploy(String appName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 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
Constructor Detail

DeploymentService

public DeploymentService(Map<Class<? extends MuleCoreExtension>,MuleCoreExtension> coreExtensions)
Method Detail

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)

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(File marker)

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)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.