org.jboss.as.plugin.deployment.domain
Class DomainDeployment
java.lang.Object
org.jboss.as.plugin.deployment.domain.DomainDeployment
- All Implemented Interfaces:
- Deployment
public class DomainDeployment
- extends Object
- implements Deployment
- Author:
- James R. Perkins
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainDeployment
public 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.
- Parameters:
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.
create
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)
- Creates a new deployment.
- Parameters:
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.
- Returns:
- the new deployment
execute
public Deployment.Status execute()
throws DeploymentExecutionException,
DeploymentFailureException
- Description copied from interface:
Deployment
- Executes the deployment
- Specified by:
execute
in interface Deployment
- Returns:
- the status of the execution.
- Throws:
DeploymentExecutionException
- if the deployment fails
DeploymentFailureException
- if a failure occurs.
getType
public Deployment.Type getType()
- Description copied from interface:
Deployment
- The type of the deployment.
- Specified by:
getType
in interface Deployment
- Returns:
- the type of the deployment.
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.