Class StandaloneDeployment
java.lang.Object
ru.cg.webbpm.studio.subsystems.deploy.appserver.impl.StandaloneDeployment
- All Implemented Interfaces:
Deployment
A deployment for standalone servers.
- Author:
- James R. Perkins
-
Nested Class Summary
Nested classes/interfaces inherited from interface ru.cg.webbpm.studio.subsystems.deploy.appserver.impl.Deployment
Deployment.Status, Deployment.Type
-
Constructor Summary
ConstructorsConstructorDescriptionStandaloneDeployment
(org.jboss.as.controller.client.ModelControllerClient client, File content, String name, Deployment.Type type, String matchPattern, MatchPatternStrategy matchPatternStrategy) Creates a new deployment. -
Method Summary
Modifier and TypeMethodDescriptionstatic StandaloneDeployment
create
(org.jboss.as.controller.client.ModelControllerClient client, File content, String name, Deployment.Type type, String matchPattern, MatchPatternStrategy matchPatternStrategy) Creates a new deployment.execute()
Executes the deploymentgetType()
The type of the deployment.
-
Constructor Details
-
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, ifnull
the name of the content file is used.type
- the deployment type.matchPattern
- the pattern for matching multiple artifacts, ifnull
the name is used.matchPatternStrategy
- the strategy for handling multiple artifacts.
-
-
Method Details
-
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, ifnull
the name of the content file is used.type
- the deployment type.matchPattern
- the pattern for matching multiple artifacts, ifnull
the name is used.matchPatternStrategy
- the strategy for handling multiple artifacts.- Returns:
- the new deployment
-
execute
Description copied from interface:Deployment
Executes the deployment- Specified by:
execute
in interfaceDeployment
- Returns:
- the status of the execution.
- Throws:
DeploymentExecutionException
- if the deployment failsDeploymentFailureException
- if a failure occurs.
-
getType
Description copied from interface:Deployment
The type of the deployment.- Specified by:
getType
in interfaceDeployment
- Returns:
- the type of the deployment.
-