Class Environment
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.deployit.plugin.api.udm.Environment
- All Implemented Interfaces:
ConfigurationItem,Serializable,Comparable<BaseConfigurationItem>
@Metadata(description="Groups infrastructure CIs and dictionaries and serves as a target for deployment.",
root=ENVIRONMENTS)
@TypeIcon("icons/types/udm.Environment.svg")
public class Environment
extends BaseConfigurationItem
An Environment is a grouping of
Container CIs (such as hosts, servers, clusters, etc.) and Dictionary items.
An Environment is used as the target of a deployment, allowing Deployables to be mapped to members of
the environment.
- See Also:
-
Field Summary
Fields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
id, syntheticProperties, typeFields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aContaineras a member of this environment.The dictionaries providing placeholder values.<T extends Serializable>
Set<T>getMembersOfType(Class<T> classType) List<com.xebialabs.deployit.plugin.api.udm.transformer.PatchDictionary>voidsetDictionaries(List<IDictionary> dictionaries) The dictionaries providing placeholder values.voidsetDirectoryPath(String directoryPath) voidsetMembers(Set<Container> members) voidsetPatchDictionaries(List<com.xebialabs.deployit.plugin.api.udm.transformer.PatchDictionary> patchDictionaries) Methods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
compareTo, equals, get$ciAttributes, get$directoryReference, get$externalProperties, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$directoryReference, set$externalProperties, set$internalId, set$referenceId, set$securedCi, set$securedDirectoryReference, set$token, set$validationMessages, setId, setProperty, setType, toString
-
Constructor Details
-
Environment
public Environment() -
Environment
-
-
Method Details
-
getMembers
- Returns:
- The set of
Containers that are members of this environment.
-
getMembersOfType
- Type Parameters:
T- The type against which to match the members.- Parameters:
classType- An instance of the given type.- Returns:
- Only the members that matches the given type.
-
setMembers
- Parameters:
members- The set ofContainers that are members of this environment.
-
addMember
Adds aContaineras a member of this environment. -
getDictionaries
The dictionaries providing placeholder values. If the same entry exists in multiple dictionaries, the first one in the list is taken.- Returns:
- The list of
IDictionarys associated with this environment.
-
setDictionaries
The dictionaries providing placeholder values. If the same entry exists in multiple dictionaries, the first one in the list is taken.- Parameters:
dictionaries- The list ofIDictionarys associated with this environment.
-
getPatchDictionaries
public List<com.xebialabs.deployit.plugin.api.udm.transformer.PatchDictionary> getPatchDictionaries() -
setPatchDictionaries
public void setPatchDictionaries(List<com.xebialabs.deployit.plugin.api.udm.transformer.PatchDictionary> patchDictionaries) -
getDirectoryPath
-
setDirectoryPath
-