public class UndeployDescription extends Object implements DeploymentDescription
Instances of this are not thread-safe.
| Constructor and Description |
|---|
UndeployDescription(String name)
Creates a new undeploy description.
|
| Modifier and Type | Method and Description |
|---|---|
UndeployDescription |
addServerGroup(String serverGroup)
Adds a server group for the deployment description.
|
UndeployDescription |
addServerGroups(Collection<String> serverGroups)
Adds the server groups for the deployment description.
|
UndeployDescription |
addServerGroups(String... serverGroups)
Adds the server groups for the deployment description.
|
int |
compareTo(DeploymentDescription o) |
boolean |
equals(Object obj) |
String |
getName()
Returns the name for this deployment.
|
Set<String> |
getServerGroups()
Returns the server groups for this deployment.
|
int |
hashCode() |
boolean |
isFailOnMissing()
Indicates whether or not a failure should occur if the deployment does not exist on the container.
|
static UndeployDescription |
of(DeploymentDescription deploymentDescription)
Creates a new undeploy description.
|
static UndeployDescription |
of(String name)
Creates a new undeploy description.
|
UndeployDescription |
setFailOnMissing(boolean failOnMissing)
Sets whether or not a failure should occur if the deployment does exist on the container.
|
String |
toString() |
public UndeployDescription(String name)
name - the name of the deploymentpublic static UndeployDescription of(String name)
name - the name of the deploymentpublic static UndeployDescription of(DeploymentDescription deploymentDescription)
deploymentDescription - the deployment description to copypublic UndeployDescription addServerGroup(String serverGroup)
serverGroup - the server group to addpublic UndeployDescription addServerGroups(String... serverGroups)
serverGroups - the server groups to addpublic UndeployDescription addServerGroups(Collection<String> serverGroups)
serverGroups - the server groups to addpublic Set<String> getServerGroups()
DeploymentDescriptiongetServerGroups in interface DeploymentDescriptionpublic String getName()
DeploymentDescriptiongetName in interface DeploymentDescriptionpublic boolean isFailOnMissing()
true indicates the deployment should fail.true if the undeploy should fail if not found on the container, otherwise falsepublic UndeployDescription setFailOnMissing(boolean failOnMissing)
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 ignoredpublic int compareTo(DeploymentDescription o)
compareTo in interface Comparable<DeploymentDescription>Copyright © 2016 JBoss by Red Hat. All rights reserved.