Package org.wildfly.plugin.tools
Class UndeployDescription
java.lang.Object
org.wildfly.plugin.tools.UndeployDescription
- All Implemented Interfaces:
Comparable<UndeployDescription>
,DeploymentDescription
public class UndeployDescription
extends Object
implements DeploymentDescription, Comparable<UndeployDescription>
Represents the description for undeploying content from a running container.
Instances of this are not thread-safe.
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionaddServerGroup
(String serverGroup) Adds a server group for the deployment description.addServerGroups
(String... serverGroups) Adds the server groups for the deployment description.addServerGroups
(Collection<String> serverGroups) Adds the server groups for the deployment description.int
boolean
getName()
Returns the name for this deployment.Returns the server groups for this deployment.int
hashCode()
boolean
Indicates whether or not a failure should occur if the deployment does not exist on the container.boolean
Indicates whether or not the content should be removed from the content repository.static UndeployDescription
Creates a new undeploy description.static UndeployDescription
of
(DeploymentDescription deploymentDescription) Creates a new undeploy description.setFailOnMissing
(boolean failOnMissing) Sets whether or not a failure should occur if the deployment does exist on the container.setRemoveContent
(boolean removeContent) Sets whether or not the content should be removed after theundeploy
operation.toString()
-
Method Details
-
of
Creates a new undeploy description.- Parameters:
name
- the name of the deployment- Returns:
- the description
-
of
Creates a new undeploy description.- Parameters:
deploymentDescription
- the deployment description to copy- Returns:
- the description
-
addServerGroup
Adds a server group for the deployment description.- Parameters:
serverGroup
- the server group to add- Returns:
- this deployment description
-
addServerGroups
Adds the server groups for the deployment description.- Parameters:
serverGroups
- the server groups to add- Returns:
- this deployment description
-
addServerGroups
Adds the server groups for the deployment description.- Parameters:
serverGroups
- the server groups to add- Returns:
- this deployment description
-
getServerGroups
Description copied from interface:DeploymentDescription
Returns the server groups for this deployment.- Specified by:
getServerGroups
in interfaceDeploymentDescription
- Returns:
- a set of server groups for this deployment
-
getName
Description copied from interface:DeploymentDescription
Returns the name for this deployment.- Specified by:
getName
in interfaceDeploymentDescription
- Returns:
- the name for this deployment
-
isFailOnMissing
public boolean isFailOnMissing()Indicates whether or not a failure should occur if the deployment does not exist on the container. A value oftrue
indicates the deployment should fail.- Returns:
true
if the undeploy should fail if not found on the container, otherwisefalse
-
setFailOnMissing
Sets whether or not a failure should occur if the deployment does exist on the container.- Parameters:
failOnMissing
-true
if the undeploy should fail if the deployment was not found on the server,false
if the deployment does not exist and the undeploy should be ignored- Returns:
- the deployment description
-
isRemoveContent
public boolean isRemoveContent()Indicates whether or not the content should be removed from the content repository.- Returns:
true
if the content should also be removed from the repository,false
it only anundeploy
operation should be executed and the content should remain in the repository
-
setRemoveContent
Sets whether or not the content should be removed after theundeploy
operation.The default value is
true
.- Parameters:
removeContent
-true
if the content should be removed,false
if the content should remain in the repository- Returns:
- the deployment description
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UndeployDescription>
-
hashCode
public int hashCode() -
equals
-
toString
-