Class 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:
  • Constructor Details

    • Environment

      public Environment()
    • Environment

      public Environment(Container... members)
  • Method Details

    • getMembers

      public Set<Container> getMembers()
      Returns:
      The set of Containers that are members of this environment.
    • getMembersOfType

      public <T extends Serializable> Set<T> getMembersOfType(Class<T> classType)
      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

      public void setMembers(Set<Container> members)
      Parameters:
      members - The set of Containers that are members of this environment.
    • addMember

      public void addMember(Container member)
      Adds a Container as a member of this environment.
    • getDictionaries

      public List<IDictionary> 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

      public void setDictionaries(List<IDictionary> dictionaries)
      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 of IDictionarys 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

      public String getDirectoryPath()
    • setDirectoryPath

      public void setDirectoryPath(String directoryPath)