public class StandaloneDeployment extends Object implements Deployment
Deployment.Status, Deployment.Type| Constructor and Description |
|---|
StandaloneDeployment(org.jboss.as.controller.client.ModelControllerClient client,
File content,
String name,
Deployment.Type type,
String matchPattern,
MatchPatternStrategy matchPatternStrategy)
Creates a new deployment.
|
| Modifier and Type | Method and Description |
|---|---|
static StandaloneDeployment |
create(org.jboss.as.controller.client.ModelControllerClient client,
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 StandaloneDeployment(org.jboss.as.controller.client.ModelControllerClient client,
File content,
String name,
Deployment.Type type,
String matchPattern,
MatchPatternStrategy matchPatternStrategy)
client - the client that is connected.content - the content for the deployment.name - the name of the deployment, if null the name of the content file is used.type - the deployment type.matchPattern - the pattern for matching multiple artifacts, if null the name is used.matchPatternStrategy - the strategy for handling multiple artifacts.public static StandaloneDeployment create(org.jboss.as.controller.client.ModelControllerClient client, File content, String name, Deployment.Type type, String matchPattern, MatchPatternStrategy matchPatternStrategy)
client - the client that is connected.content - the content for the deployment.name - the name of the deployment, if null the name of the content file is used.type - the deployment type.matchPattern - 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
Deploymentexecute in interface DeploymentDeploymentExecutionException - if the deployment failsDeploymentFailureException - if a failure occurs.public Deployment.Type getType()
DeploymentgetType in interface DeploymentCopyright © 2013 JBoss by Red Hat. All Rights Reserved.