@Metadata(description="Groups infrastructure CIs and dictionaries and serves as a target for deployment.", root=ENVIRONMENTS) public class Environment extends BaseConfigurationItem
Container
CIs (such as hosts, servers, clusters, etc.) and Dictionary
items.
An Environment is used as the target of a deployment, allowing Deployable
s to be mapped to members of
the environment.id, syntheticProperties, type
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
Constructor and Description |
---|
Environment() |
Environment(Container... members) |
Modifier and Type | Method and Description |
---|---|
void |
addMember(Container member)
Adds a
Container as a member of this environment. |
java.util.List<Dictionary> |
getDictionaries()
The dictionaries providing placeholder values.
|
java.util.Set<Container> |
getMembers() |
<T extends java.io.Serializable> |
getMembersOfType(java.lang.Class<T> classType) |
void |
setDictionaries(java.util.List<Dictionary> dictionaries)
The dictionaries providing placeholder values.
|
void |
setMembers(java.util.Set<Container> members) |
compareTo, equals, get$ciAttributes, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$token, set$validationMessages, setId, setProperty, setType, toString
public Environment()
public Environment(Container... members)
public java.util.Set<Container> getMembers()
Container
s that are members of this environment.public <T extends java.io.Serializable> java.util.Set<T> getMembersOfType(java.lang.Class<T> classType)
T
- The type against which to match the members.classType
- An instance of the given type.public void setMembers(java.util.Set<Container> members)
members
- The set of Container
s that are members of this environment.public java.util.List<Dictionary> getDictionaries()
Dictionary
s associated with this environment.public void setDictionaries(java.util.List<Dictionary> dictionaries)
dictionaries
- The list of Dictionary
s associated with this environment.