Class HostGroupItem

java.lang.Object
com.uc4.api.objects.HostGroupItem

public class HostGroupItem extends Object
This class represents a single filter entry in HOSTG objects.
  • Constructor Details

    • HostGroupItem

      protected HostGroupItem(Element row)
    • HostGroupItem

      public HostGroupItem(String name)
      Constructs a new HostGroupItem. Every field int this filter is set to an empty string.
      Parameters:
      name - Name of the host or filter expression
  • Method Details

    • getArchive1

      public String getArchive1()
      Returns:
      Text for the first archive key
    • getArchive2

      public String getArchive2()
      Returns:
      Text for the second archive key
    • getHardware

      public String getHardware()
      Returns:
      String describing the hardware of the host
    • getName

      public String getName()
      Returns:
      Hostname used for this filter
    • getRole

      public String getRole()
      Returns:
      Name of the role which is assiged to the host
    • getSoftware

      public String getSoftware()
      Returns:
      Software description of the host
    • getSoftwareVersion

      public String getSoftwareVersion()
      Returns:
      Software version of the host
    • getProductVersion

      public String getProductVersion()
      Returns:
      Returns the product version of the Agent
    • setArchive1

      public void setArchive1(String archive1)
      Sets the first archive key of the host. Throws IllegalArgumentException if the parameter archive1 contains more than 512 characters.
      Parameters:
      archive1 - Archive Key
    • setArchive2

      public void setArchive2(String archive2)
      Sets the second archive key of the host. Throws IllegalArgumentException if the parameter archive1 contains more than 60 characters.
      Parameters:
      archive2 - Archive Key
    • setHardware

      public void setHardware(String hardware)
      Sets the hardware text of the host. Throws IllegalArgumentException if the hardware has more than 32 characters.
      Parameters:
      hardware - Text describing the hardware
    • setName

      public void setName(String name)
      Sets the name of the host. Throws IllegalArgumentException if the name has more than 32 characters.
      Parameters:
      name - Host name
    • setRole

      public void setRole(String role)
      Sets the role of the host. Throws IllegalArgumentException if the role name has more than 256 characters.
      Parameters:
      role - Role name
    • setSoftware

      public void setSoftware(String software)
      Sets the Software filter for the host. Throws IllegalArgumentException if the software has more than 32 characters.
      Parameters:
      software - Software filter
    • setSoftwareVersion

      public void setSoftwareVersion(String softwareVersion)
      Sets the software version filter of the host. Throws IllegalArgumentException if the software version has more than 32 characters.
      Parameters:
      softwareVersion - Filter for software version
    • setProductVersion

      public void setProductVersion(String version)
      Sets the filter for the product version of the host. Throws IllegalArgumentException if the product version has more than 270 characters.
      Parameters:
      version - Product version (for example 6.00A701-609)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • store

      protected void store(Element row)