public class MuleDeploymentService extends Object implements DeploymentService
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFACT_ANCHOR_SUFFIX |
protected org.apache.commons.logging.Log |
logger |
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
protected final transient org.apache.commons.logging.Log logger
public MuleDeploymentService(PluginClassLoaderManager pluginClassLoaderManager)
public void start()
start in interface DeploymentServicepublic void stop()
stop in interface DeploymentServicepublic Domain findDomain(String domainName)
findDomain in interface DeploymentServicedomainName - name of the domainpublic Application findApplication(String appName)
DeploymentServicefindApplication in interface DeploymentServicepublic Collection<Application> findDomainApplications(String domain)
findDomainApplications in interface DeploymentServicedomain - name of a deployed domainpublic List<Application> getApplications()
DeploymentServicegetApplications in interface DeploymentServicepublic List<Domain> getDomains()
getDomains in interface DeploymentServicepublic void setAppFactory(ApplicationFactory appFactory)
public ReentrantLock getLock()
DeploymentServicegetLock in interface DeploymentServicepublic void undeploy(String appName)
DeploymentServiceundeploy in interface DeploymentServiceappName - name of the application to undeploypublic void deploy(URL appArchiveUrl) throws IOException
DeploymentServicedeploy in interface DeploymentServiceappArchiveUrl - location of the zip application fileIOExceptionpublic void redeploy(String artifactName)
DeploymentServiceredeploy in interface DeploymentServiceartifactName - then name of the application to redeploypublic void undeployDomain(String domainName)
DeploymentServiceundeployDomain in interface DeploymentServicedomainName - name of the domain to undeploypublic void deployDomain(URL domainArchiveUrl) throws IOException
DeploymentServicedeployDomain in interface DeploymentServicedomainArchiveUrl - location of the zip domain fileIOExceptionpublic void redeployDomain(String domainName)
DeploymentServiceredeployDomain in interface DeploymentServicedomainName - then name of the domain to redeploypublic void addStartupListener(StartupListener listener)
addStartupListener in interface DeploymentServicepublic void removeStartupListener(StartupListener listener)
removeStartupListener in interface DeploymentServicepublic void addDeploymentListener(DeploymentListener listener)
addDeploymentListener in interface DeploymentListenerManagerpublic void removeDeploymentListener(DeploymentListener listener)
removeDeploymentListener in interface DeploymentListenerManagerpublic void addDomainDeploymentListener(DeploymentListener listener)
addDomainDeploymentListener in interface DomainDeploymentListenerManagerpublic void removeDomainDeploymentListener(DeploymentListener listener)
removeDomainDeploymentListener in interface DomainDeploymentListenerManagerpublic void setDomainFactory(DomainFactory domainFactory)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.