public class MuleDeploymentService extends Object implements DeploymentService
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFACT_ANCHOR_SUFFIX |
static org.apache.commons.io.filefilter.IOFileFilter |
JAR_ARTIFACT_FILTER |
protected org.slf4j.Logger |
logger |
static String |
PARALLEL_DEPLOYMENT_PROPERTY |
| Constructor and Description |
|---|
MuleDeploymentService(DefaultDomainFactory domainFactory,
DefaultApplicationFactory applicationFactory,
Supplier<SchedulerService> schedulerServiceSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeploymentListener(DeploymentListener listener) |
void |
addDomainDeploymentListener(DeploymentListener listener) |
void |
addStartupListener(StartupListener listener) |
void |
deploy(URI appArchiveUri)
Deploys an application bundled as a zip from the given URL to the mule container
|
void |
deploy(URI appArchiveUri,
Properties appProperties)
Deploys an application bundled as a zip from the given URL to the mule container and applies the provided properties.
|
void |
deployDomain(URI domainArchiveUri)
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) |
static SchedulerService |
findSchedulerService(ServiceManager serviceManager) |
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 |
redeploy(String artifactName,
Properties appProperties)
Undeploys and redeploys an application including the provided appProperties.
|
void |
redeployDomain(String domainName)
Undeploys and redeploys a domain
|
void |
removeDeploymentListener(DeploymentListener listener) |
void |
removeDomainDeploymentListener(DeploymentListener listener) |
void |
removeStartupListener(StartupListener listener) |
void |
setAppFactory(ArtifactFactory<Application> appFactory) |
void |
setDomainFactory(ArtifactFactory<Domain> 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 JAR_ARTIFACT_FILTER
public static final String PARALLEL_DEPLOYMENT_PROPERTY
protected final transient org.slf4j.Logger logger
public MuleDeploymentService(DefaultDomainFactory domainFactory, DefaultApplicationFactory applicationFactory, Supplier<SchedulerService> schedulerServiceSupplier)
public void start()
start in interface DeploymentServicepublic void stop()
stop in interface DeploymentServicepublic Domain findDomain(String domainName)
DeploymentServicefindDomain 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(ArtifactFactory<Application> appFactory)
public ReentrantLock getLock()
DeploymentServicegetLock in interface DeploymentServicepublic void undeploy(String appName)
DeploymentServiceundeploy in interface DeploymentServiceappName - name of the application to undeploypublic void deploy(URI appArchiveUri) throws IOException
DeploymentServicedeploy in interface DeploymentServiceappArchiveUri - location of the zip application fileIOExceptionpublic void deploy(URI appArchiveUri, Properties appProperties) throws IOException
DeploymentServicedeploy in interface DeploymentServiceIOExceptionpublic void redeploy(String artifactName)
DeploymentServiceredeploy in interface DeploymentServiceartifactName - then name of the application to redeploypublic void redeploy(String artifactName, Properties appProperties)
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(URI domainArchiveUri) throws IOException
DeploymentServicedeployDomain in interface DeploymentServicedomainArchiveUri - 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(ArtifactFactory<Domain> domainFactory)
public static SchedulerService findSchedulerService(ServiceManager serviceManager)
serviceManager - the manager to do the lookup of the service in.SchedulerService from within the given serviceManager.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.