public class MuleDeploymentService extends Object implements DeploymentService
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACT_ANCHOR_SUFFIX |
protected Log |
logger |
static String |
PARALLEL_DEPLOYMENT_PROPERTY |
static org.apache.commons.io.filefilter.IOFileFilter |
ZIP_ARTIFACT_FILTER |
Constructor and Description |
---|
MuleDeploymentService(PluginClassLoaderManager pluginClassLoaderManager) |
Modifier and Type | Method and Description |
---|---|
void |
addDeploymentListener(DeploymentListener listener) |
void |
addDomainDeploymentListener(DeploymentListener listener) |
void |
addStartupListener(StartupListener listener) |
void |
deploy(URL appArchiveUrl)
Deploys and application bundled as a zip from the given URL to the mule container
|
void |
deployDomain(URL domainArchiveUrl)
Deploys a domain bundled as a zip from the given URL to the mule container
|
Application |
findApplication(String appName)
Finds an active application by name.
|
Domain |
findDomain(String domainName) |
Collection<Application> |
findDomainApplications(String domain) |
List<Application> |
getApplications()
Lists all applications that are deployed, starting or failed to start
|
List<Domain> |
getDomains() |
ReentrantLock |
getLock()
Obtains the object used to synchronize the service.
|
void |
redeploy(String artifactName)
Undeploys and redeploys an application
|
void |
redeployDomain(String domainName)
Undeploys and redeploys a domain
|
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)
Undeploys an application from the mule container
|
void |
undeployDomain(String domainName)
Undeploys a domain from the mule container
|
public static final String ARTIFACT_ANCHOR_SUFFIX
public static final org.apache.commons.io.filefilter.IOFileFilter ZIP_ARTIFACT_FILTER
public static final String PARALLEL_DEPLOYMENT_PROPERTY
protected final transient Log logger
public MuleDeploymentService(PluginClassLoaderManager pluginClassLoaderManager)
public void start()
start
in interface DeploymentService
public void stop()
stop
in interface DeploymentService
public Domain findDomain(String domainName)
findDomain
in interface DeploymentService
domainName
- name of the domainpublic Application findApplication(String appName)
DeploymentService
findApplication
in interface DeploymentService
public Collection<Application> findDomainApplications(String domain)
findDomainApplications
in interface DeploymentService
domain
- name of a deployed domainpublic List<Application> getApplications()
DeploymentService
getApplications
in interface DeploymentService
public List<Domain> getDomains()
getDomains
in interface DeploymentService
public void setAppFactory(ApplicationFactory appFactory)
public ReentrantLock getLock()
DeploymentService
getLock
in interface DeploymentService
public void undeploy(String appName)
DeploymentService
undeploy
in interface DeploymentService
appName
- name of the application to undeploypublic void deploy(URL appArchiveUrl) throws IOException
DeploymentService
deploy
in interface DeploymentService
appArchiveUrl
- location of the zip application fileIOException
public void redeploy(String artifactName)
DeploymentService
redeploy
in interface DeploymentService
artifactName
- then name of the application to redeploypublic void undeployDomain(String domainName)
DeploymentService
undeployDomain
in interface DeploymentService
domainName
- name of the domain to undeploypublic void deployDomain(URL domainArchiveUrl) throws IOException
DeploymentService
deployDomain
in interface DeploymentService
domainArchiveUrl
- location of the zip domain fileIOException
public void redeployDomain(String domainName)
DeploymentService
redeployDomain
in interface DeploymentService
domainName
- then name of the domain to redeploypublic void addStartupListener(StartupListener listener)
addStartupListener
in interface DeploymentService
public void removeStartupListener(StartupListener listener)
removeStartupListener
in interface DeploymentService
public void addDeploymentListener(DeploymentListener listener)
addDeploymentListener
in interface DeploymentListenerManager
public void removeDeploymentListener(DeploymentListener listener)
removeDeploymentListener
in interface DeploymentListenerManager
public void addDomainDeploymentListener(DeploymentListener listener)
addDomainDeploymentListener
in interface DomainDeploymentListenerManager
public void removeDomainDeploymentListener(DeploymentListener listener)
removeDomainDeploymentListener
in interface DomainDeploymentListenerManager
public void setDomainFactory(DomainFactory domainFactory)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.