public class DomainDeployment extends Object implements Deployment
Deployment.Status, Deployment.Type
Constructor and Description |
---|
DomainDeployment(org.jboss.as.controller.client.helpers.domain.DomainClient client,
Domain domain,
File content,
String name,
Deployment.Type type,
String matchPattern,
MatchPatternStrategy matchPatternStrategy)
Creates a new deployment.
|
Modifier and Type | Method and Description |
---|---|
static DomainDeployment |
create(org.jboss.as.controller.client.helpers.domain.DomainClient client,
Domain domain,
File content,
String name,
Deployment.Type type,
String matchPattern,
MatchPatternStrategy matchPatternStrategy)
Creates a new deployment.
|
Deployment.Status |
execute()
Executes the deployment
|
Deployment.Type |
getType()
The type of the deployment.
|
public DomainDeployment(org.jboss.as.controller.client.helpers.domain.DomainClient client, Domain domain, File content, String name, Deployment.Type type, String matchPattern, MatchPatternStrategy matchPatternStrategy)
client
- the client for the serverdomain
- the domain informationcontent
- the content for the deploymentname
- the name of the deployment, if null
the name of the content file is usedtype
- the deployment typematchPattern
- the pattern for matching multiple artifacts, if null
the name is used.matchPatternStrategy
- the strategy for handling multiple artifacts.public static DomainDeployment create(org.jboss.as.controller.client.helpers.domain.DomainClient client, Domain domain, File content, String name, Deployment.Type type, String matchPattern, MatchPatternStrategy matchPatternStrategy)
client
- the client for the serverdomain
- the domain informationcontent
- the content for the deploymentname
- the name of the deployment, if null
the name of the content file is usedtype
- the deployment typematchPattern
- the pattern for matching multiple artifacts, if null
the name is used.matchPatternStrategy
- the strategy for handling multiple artifacts.public Deployment.Status execute() throws DeploymentExecutionException, DeploymentFailureException
Deployment
execute
in interface Deployment
DeploymentExecutionException
- if the deployment failsDeploymentFailureException
- if a failure occurs.public Deployment.Type getType()
Deployment
getType
in interface Deployment
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.