public class SimpleDeploymentDescription extends Object implements DeploymentDescription, Comparable<SimpleDeploymentDescription>
Modifier and Type | Method and Description |
---|---|
SimpleDeploymentDescription |
addServerGroup(String serverGroup)
Adds a server group for the deployment description.
|
SimpleDeploymentDescription |
addServerGroups(Collection<String> serverGroups)
Adds the server groups for the deployment description.
|
SimpleDeploymentDescription |
addServerGroups(String... serverGroups)
Adds the server groups for the deployment description.
|
int |
compareTo(SimpleDeploymentDescription 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() |
static SimpleDeploymentDescription |
of(String name)
Creates a simple deployment description with an empty set of server groups.
|
static SimpleDeploymentDescription |
of(String name,
Set<String> serverGroups)
Creates a simple deployment description.
|
String |
toString() |
public static SimpleDeploymentDescription of(String name)
name
- the name for the deploymentpublic static SimpleDeploymentDescription of(String name, Set<String> serverGroups)
name
- the name for the deploymentserverGroups
- the server groupspublic SimpleDeploymentDescription addServerGroup(String serverGroup)
serverGroup
- the server group to addpublic SimpleDeploymentDescription addServerGroups(String... serverGroups)
serverGroups
- the server groups to addpublic SimpleDeploymentDescription addServerGroups(Collection<String> serverGroups)
serverGroups
- the server groups to addpublic Set<String> getServerGroups()
DeploymentDescription
getServerGroups
in interface DeploymentDescription
public String getName()
DeploymentDescription
getName
in interface DeploymentDescription
public int compareTo(SimpleDeploymentDescription o)
compareTo
in interface Comparable<SimpleDeploymentDescription>
Copyright © 2021 JBoss by Red Hat. All rights reserved.