JBoss AS7 Deployment Plugin 7.9.Final

org.jboss.as.plugin.deployment.standalone
Class StandaloneDeployment

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

public class StandaloneDeployment
extends Object
implements Deployment

A deployment for standalone servers.

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
StandaloneDeployment(org.jboss.as.controller.client.ModelControllerClient client, File content, String name, Deployment.Type type, String matchPattern, MatchPatternStrategy matchPatternStrategy)
          Creates a new deployment.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandaloneDeployment

public StandaloneDeployment(org.jboss.as.controller.client.ModelControllerClient client,
                            File content,
                            String name,
                            Deployment.Type type,
                            String matchPattern,
                            MatchPatternStrategy matchPatternStrategy)
Creates a new deployment.

Parameters:
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.
Method Detail

create

public 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.

Parameters:
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.
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.