org.mule.module.launcher
Interface DeploymentService

All Superinterfaces:
DeploymentListenerManager, DomainDeploymentListenerManager
All Known Implementing Classes:
MuleDeploymentService

public interface DeploymentService
extends DeploymentListenerManager, DomainDeploymentListenerManager

Manages deploy of mule applications


Method Summary
 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 removeStartupListener(StartupListener listener)
           
 void start()
           
 void stop()
           
 void undeploy(String appName)
           
 
Methods inherited from interface org.mule.module.launcher.DeploymentListenerManager
addDeploymentListener, removeDeploymentListener
 
Methods inherited from interface org.mule.module.launcher.DomainDeploymentListenerManager
addDomainDeploymentListener, removeDomainDeploymentListener
 

Method Detail

findApplication

Application findApplication(String appName)
Finds an active application by name.

Returns:
null if not found

getApplications

List<Application> getApplications()
Lists all deployed applications.

Returns:
immutable applications list

findDomain

Domain findDomain(String domainName)
Parameters:
domainName - name of the domain
Returns:
the domain with the name domainName, null if there is no domain with domainName

getDomains

List<Domain> getDomains()
Returns:
list of domains deployed in mule.

addStartupListener

void addStartupListener(StartupListener listener)

removeStartupListener

void removeStartupListener(StartupListener listener)

getLock

ReentrantLock getLock()
Obtains the object used to synchronize the service.

Returns:
a non null lock object.

undeploy

void undeploy(String appName)

deploy

void deploy(URL appArchiveUrl)
            throws IOException
Throws:
IOException

redeploy

void redeploy(String artifactName)

start

void start()

stop

void stop()


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