org.mule.module.launcher
Class MuleDeploymentService

java.lang.Object
  extended by org.mule.module.launcher.MuleDeploymentService
All Implemented Interfaces:
DeploymentListenerManager, DeploymentService, DomainDeploymentListenerManager

public class MuleDeploymentService
extends Object
implements DeploymentService


Field Summary
static String ARTIFACT_ANCHOR_SUFFIX
           
protected  Log logger
           
static org.apache.commons.io.filefilter.IOFileFilter ZIP_ARTIFACT_FILTER
           
 
Constructor Summary
MuleDeploymentService(PluginClassLoaderManager pluginClassLoaderManager)
           
 
Method Summary
 void addDeploymentListener(DeploymentListener listener)
           
 void addDomainDeploymentListener(DeploymentListener listener)
           
 void addStartupListener(StartupListener listener)
           
 void deploy(URL appArchiveUrl)
           
 Application findApplication(String appName)
          Finds an active application by name.
 Domain findDomain(String domainName)
           
 List<Application> getApplications()
          Lists all deployed applications.
 List<Domain> getDomains()
           
 ReentrantLock getLock()
          Obtains the object used to synchronize the service.
 void redeploy(String artifactName)
           
 void removeDeploymentListener(DeploymentListener listener)
           
 void removeDomainDeploymentListener(DeploymentListener listener)
           
 void removeStartupListener(StartupListener listener)
           
 void setAppFactory(ApplicationFactory appFactory)
           
 void setDomainFactory(DomainFactory domainFactory)
           
 void start()
           
 void stop()
           
 void undeploy(String appName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARTIFACT_ANCHOR_SUFFIX

public static final String ARTIFACT_ANCHOR_SUFFIX
See Also:
Constant Field Values

ZIP_ARTIFACT_FILTER

public static final org.apache.commons.io.filefilter.IOFileFilter ZIP_ARTIFACT_FILTER

logger

protected final transient Log logger
Constructor Detail

MuleDeploymentService

public MuleDeploymentService(PluginClassLoaderManager pluginClassLoaderManager)
Method Detail

start

public void start()
Specified by:
start in interface DeploymentService

stop

public void stop()
Specified by:
stop in interface DeploymentService

findDomain

public Domain findDomain(String domainName)
Specified by:
findDomain in interface DeploymentService
Parameters:
domainName - name of the domain
Returns:
the domain with the name domainName, null if there is no domain with domainName

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

getDomains

public List<Domain> getDomains()
Specified by:
getDomains in interface DeploymentService
Returns:
list of domains deployed in mule.

setAppFactory

public void setAppFactory(ApplicationFactory appFactory)

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.

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

redeploy

public void redeploy(String artifactName)
Specified by:
redeploy in interface DeploymentService

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

addDomainDeploymentListener

public void addDomainDeploymentListener(DeploymentListener listener)
Specified by:
addDomainDeploymentListener in interface DomainDeploymentListenerManager

removeDomainDeploymentListener

public void removeDomainDeploymentListener(DeploymentListener listener)
Specified by:
removeDomainDeploymentListener in interface DomainDeploymentListenerManager

setDomainFactory

public void setDomainFactory(DomainFactory domainFactory)


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