JBoss AS7 Deployment Plugin 7.9.Final

org.jboss.as.plugin.deployment.domain
Class DomainDeployment

java.lang.Object
  extended by org.jboss.as.plugin.deployment.domain.DomainDeployment
All Implemented Interfaces:
Deployment

public class DomainDeployment
extends Object
implements Deployment

Author:
James R. Perkins

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.as.plugin.deployment.Deployment
Deployment.Status, Deployment.Type
 
Constructor Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 server
domain - the domain information
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.
Method Detail

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 server
domain - the domain information
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.
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.

JBoss AS7 Deployment Plugin 7.9.Final

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.