Package org.wildfly.plugin.tools
Class SimpleDeploymentDescription
java.lang.Object
org.wildfly.plugin.tools.SimpleDeploymentDescription
- All Implemented Interfaces:
Comparable<SimpleDeploymentDescription>,DeploymentDescription
public class SimpleDeploymentDescription
extends Object
implements DeploymentDescription, Comparable<SimpleDeploymentDescription>
A simple deployment description.
- 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.intbooleangetName()Returns the name for this deployment.Returns the server groups for this deployment.inthashCode()static SimpleDeploymentDescriptionCreates a simple deployment description with an empty set of server groups.static SimpleDeploymentDescriptionCreates a simple deployment description.toString()
-
Method Details
-
of
Creates a simple deployment description with an empty set of server groups.- Parameters:
name- the name for the deployment- Returns:
- the deployment description
-
of
Creates a simple deployment description.- Parameters:
name- the name for the deploymentserverGroups- the server groups- Returns:
- the deployment 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:DeploymentDescriptionReturns the server groups for this deployment.- Specified by:
getServerGroupsin interfaceDeploymentDescription- Returns:
- a set of server groups for this deployment
-
getName
Description copied from interface:DeploymentDescriptionReturns the name for this deployment.- Specified by:
getNamein interfaceDeploymentDescription- Returns:
- the name for this deployment
-
compareTo
- Specified by:
compareToin interfaceComparable<SimpleDeploymentDescription>
-
hashCode
public int hashCode() -
equals
-
toString
-