public class DeploymentConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
protected File |
application |
protected String |
applicationName |
protected String[] |
arguments |
protected boolean |
armInsecure |
protected List<ArtifactDescription> |
artifactItems |
protected String |
businessGroup |
protected boolean |
community |
protected Long |
deploymentTimeout |
protected AbstractMuleDeployerMojo.DeploymentType |
deploymentType |
protected File |
domain |
protected String |
environment |
protected boolean |
failIfNotExists |
protected List<File> |
libs |
protected ArtifactDescription |
muleDistribution |
protected File |
muleHome |
protected String |
muleVersion |
protected String |
password |
protected Map<String,String> |
properties |
protected String |
region |
protected File |
script |
protected String |
server |
protected Integer |
size |
protected String |
skip |
protected String |
target |
protected TargetType |
targetType |
protected int |
timeout |
protected String |
uri |
protected String |
username |
protected Integer |
workers |
protected String |
workerType |
| Constructor and Description |
|---|
DeploymentConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
File |
getApplication()
Application file to be deployed.
|
String |
getApplicationName()
Name of the application to deploy/undeploy.
|
String[] |
getArguments()
List of Mule Runtime Standalone command line arguments.
|
List<ArtifactDescription> |
getArtifactItems() |
String |
getBusinessGroup()
Business group for deploymentConfiguration, if it is a nested one its format should be first.second.
|
Long |
getDeploymentTimeout()
DeploymentConfiguration timeout in milliseconds.
|
AbstractMuleDeployerMojo.DeploymentType |
getDeploymentType()
DeploymentConfiguration information.
|
File |
getDomain() |
String |
getEnvironment()
Anypoint environment name.
|
List<File> |
getLibs()
List of external libs (Jar files) to be added to MULE_HOME/user/lib directory.
|
ArtifactDescription |
getMuleDistribution()
Deprecated.
Use the official maven artifact descriptor, if you need to use Community distribution @see community property
|
File |
getMuleHome()
Path to a Mule Standalone server.
|
String |
getMuleVersion()
Version of the Mule Runtime Enterprise distribution to download.
|
String |
getPassword()
Anypoint Platform password.
|
Map<String,String> |
getProperties()
CloudHub properties.
|
String |
getRegion()
Region to deploy the application in Cloudhub.
|
File |
getScript() |
String |
getServer()
Maven server with Anypoint Platform credentials.
|
Integer |
getSize()
Number of cluster nodes.
|
String |
getSkip() |
String |
getTarget()
Anypoint Platform target name.
|
TargetType |
getTargetType()
Anypoint Platform target type: server, serverGroup or cluster.
|
int |
getTimeout() |
String |
getUri()
Anypoint Platform URI, can be configured to use with On Premise platform..
|
String |
getUsername()
Anypoint Platform username.
|
Integer |
getWorkers()
Number of workers for the deploymentConfiguration of the application in Cloudhub.
|
String |
getWorkerType()
Type of workers for the deploymentConfiguration of the application in Cloudhub.
|
boolean |
isArmInsecure()
Use insecure mode for ARM deploymentConfiguration: do not validate certificates, nor hostname.
|
boolean |
isCommunity()
When set to true the plugin will use Mule Standalone Community Edition.
|
boolean |
isFailIfNotExists()
When set to false, undeployment won't fail if the specified application does not exist.
|
void |
setApplication(File application) |
void |
setApplicationName(String applicationName) |
void |
setArguments(String[] arguments) |
void |
setArmInsecure(boolean armInsecure) |
void |
setArtifactItems(List<ArtifactDescription> artifactItems) |
void |
setBusinessGroup(String businessGroup) |
void |
setCommunity(boolean community) |
void |
setDeploymentTimeout(Long deploymentTimeout) |
void |
setDeploymentType(AbstractMuleDeployerMojo.DeploymentType deploymentType) |
void |
setDomain(File domain) |
void |
setEnvironment(String environment) |
void |
setFailIfNotExists(boolean failIfNotExists) |
void |
setLibs(List<File> libs) |
void |
setMuleDistribution(ArtifactDescription muleDistribution) |
void |
setMuleHome(File muleHome) |
void |
setMuleVersion(String muleVersion) |
void |
setPassword(String password) |
void |
setProperties(Map<String,String> properties) |
void |
setRegion(String region) |
void |
setScript(File script) |
void |
setServer(String server) |
void |
setSize(Integer size) |
void |
setSkip(String skip) |
void |
setTarget(String target) |
void |
setTargetType(TargetType targetType) |
void |
setTimeout(int timeout) |
void |
setUri(String uri) |
void |
setUsername(String username) |
void |
setWorkers(Integer workers) |
void |
setWorkerType(String workerType) |
@Parameter(required=false,
property="maven.server")
protected String server
@Parameter(required=false,
property="anypoint.username")
protected String username
@Parameter(required=false,
property="anypoint.password")
protected String password
@Parameter(required=true) protected AbstractMuleDeployerMojo.DeploymentType deploymentType
@Parameter(readonly=true,
property="anypoint.uri",
defaultValue="https://anypoint.mulesoft.com")
protected String uri
@Parameter(required=false,
property="anypoint.environment")
protected String environment
@Parameter(property="mule.home") protected File muleHome
@Parameter(property="mule.version") protected String muleVersion
@Parameter(defaultValue="2",
required=true)
protected Integer size
@Parameter(defaultValue="",
property="anypoint.businessGroup")
protected String businessGroup
@Parameter(defaultValue="Medium",
readonly=true,
property="arm.insecure")
protected boolean armInsecure
@Parameter(property="mule.application") protected File application
@Parameter(readonly=true,
property="applicationName")
protected String applicationName
@Parameter(property="anypoint.target") protected String target
@Parameter(property="anypoint.target.type") protected TargetType targetType
@Parameter(property="mule.skip") protected String skip
@Parameter protected File domain
@Parameter(property="script",
required=false)
protected File script
@Parameter(property="mule.timeout",
required=false)
protected int timeout
@Parameter protected List<ArtifactDescription> artifactItems
@Parameter(readonly=true,
required=false,
defaultValue="false",
property="mule.community")
protected boolean community
@Parameter(readonly=true) protected ArtifactDescription muleDistribution
@Parameter(property="mule.deploymentConfiguration.timeout",
defaultValue="60000",
required=true)
protected Long deploymentTimeout
@Parameter(property="mule.arguments",
required=false)
protected String[] arguments
@Parameter(property="cloudhub.region",
defaultValue="us-east-1")
protected String region
@Parameter(property="cloudhub.workers") protected Integer workers
@Parameter(defaultValue="Medium",
property="cloudhub.workerType")
protected String workerType
@Parameter(defaultValue="true") protected boolean failIfNotExists
public String getServer()
public void setServer(String server)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public AbstractMuleDeployerMojo.DeploymentType getDeploymentType()
public void setDeploymentType(AbstractMuleDeployerMojo.DeploymentType deploymentType)
public String getUri()
public void setUri(String uri)
public String getEnvironment()
public void setEnvironment(String environment)
public File getMuleHome()
muleDistribution and muleVersion are mutual
exclusive.public void setMuleHome(File muleHome)
public String getMuleVersion()
muleDistribution parameter. This parameter and muleDistribution are mutual exclusive.public void setMuleVersion(String muleVersion)
public Integer getSize()
public void setSize(Integer size)
public String getBusinessGroup()
public void setBusinessGroup(String businessGroup)
public boolean isArmInsecure()
public void setArmInsecure(boolean armInsecure)
public File getApplication()
public void setApplication(File application)
public String getApplicationName()
public void setApplicationName(String applicationName)
public String getTarget()
DeployMojo#targetTypepublic void setTarget(String target)
public TargetType getTargetType()
public void setTargetType(TargetType targetType)
public String getSkip()
public void setSkip(String skip)
public File getDomain()
public void setDomain(File domain)
public File getScript()
public void setScript(File script)
public int getTimeout()
public void setTimeout(int timeout)
public List<ArtifactDescription> getArtifactItems()
public void setArtifactItems(List<ArtifactDescription> artifactItems)
public boolean isCommunity()
public void setCommunity(boolean community)
public ArtifactDescription getMuleDistribution()
muleVersion are mutual exclusivepublic void setMuleDistribution(ArtifactDescription muleDistribution)
public Long getDeploymentTimeout()
public void setDeploymentTimeout(Long deploymentTimeout)
public String[] getArguments()
-M-D.
If you want to add a System property for the Wrapper don't forget to prepend -D.
Example:
<arguments><argument>-M-Djdbc.url=jdbc:oracle:thin:@myhost:1521:orcl</argument></arguments>
public void setArguments(String[] arguments)
public List<File> getLibs()
public String getRegion()
public void setRegion(String region)
public Integer getWorkers()
public void setWorkers(Integer workers)
public String getWorkerType()
public void setWorkerType(String workerType)
public boolean isFailIfNotExists()
public void setFailIfNotExists(boolean failIfNotExists)
Copyright © 2017 MuleSoft Inc. All rights reserved.