Class HostGroupItem


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

      Constructors 
      Modifier Constructor Description
        HostGroupItem​(java.lang.String name)
      Constructs a new HostGroupItem.
      protected HostGroupItem​(org.w3c.dom.Element row)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getArchive1()  
      java.lang.String getArchive2()  
      java.lang.String getHardware()  
      java.lang.String getName()  
      java.lang.String getProductVersion()  
      java.lang.String getRole()  
      java.lang.String getSoftware()  
      java.lang.String getSoftwareVersion()  
      void setArchive1​(java.lang.String archive1)
      Sets the first archive key of the host.
      void setArchive2​(java.lang.String archive2)
      Sets the second archive key of the host.
      void setHardware​(java.lang.String hardware)
      Sets the hardware text of the host.
      void setName​(java.lang.String name)
      Sets the name of the host.
      void setProductVersion​(java.lang.String version)
      Sets the filter for the product version of the host.
      void setRole​(java.lang.String role)
      Sets the role of the host.
      void setSoftware​(java.lang.String software)
      Sets the Software filter for the host.
      void setSoftwareVersion​(java.lang.String softwareVersion)
      Sets the software version filter of the host.
      protected void store​(org.w3c.dom.Element row)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HostGroupItem

        protected HostGroupItem​(org.w3c.dom.Element row)
      • HostGroupItem

        public HostGroupItem​(java.lang.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 Detail

      • getArchive1

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

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

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

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

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

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

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

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

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

        public void setArchive2​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • store

        protected void store​(org.w3c.dom.Element row)