Class VmwareCollection

  • All Implemented Interfaces:
    java.io.Serializable

    public class VmwareCollection
    extends java.lang.Object
    implements java.io.Serializable
    A grouping of VMware related RRD parms and performance counter groups
    See Also:
    Serialized Form
    • Constructor Detail

      • VmwareCollection

        public VmwareCollection()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides the java.lang.Object.equals method.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
        true if the objects are equal.
      • getName

        public java.lang.String getName()
        Returns the value of field 'name'.
        Returns:
        the value of field 'Name'.
      • getRrd

        public Rrd getRrd()
        Returns the value of field 'rrd'. The field 'rrd' has the following description: RRD parms
        Returns:
        the value of field 'Rrd'.
      • addVmwareGroup

        public void addVmwareGroup​(VmwareGroup vVmwareGroup)
                            throws java.lang.IndexOutOfBoundsException
        Parameters:
        vVmwareGroup -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • addVmwareGroup

        public void addVmwareGroup​(int index,
                                   VmwareGroup vVmwareGroup)
                            throws java.lang.IndexOutOfBoundsException
        Parameters:
        index -
        vVmwareGroup -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • enumerateVmwareGroup

        public java.util.Enumeration<VmwareGroup> enumerateVmwareGroup()
        Method enumerateVmwareGroup.
        Returns:
        an Enumeration over all possible elements of this collection
      • getVmwareGroup

        public VmwareGroup getVmwareGroup​(int index)
                                   throws java.lang.IndexOutOfBoundsException
        Method getVmwareGroup.
        Parameters:
        index -
        Returns:
        the value of the org.opennms.netmgt.config.vmware.vijava.VmwareGroup at the given index
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • getVmwareGroup

        public VmwareGroup[] getVmwareGroup()
        Method getVmwareGroup.Returns the contents of the collection in an Array.

        Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

        Returns:
        this collection as an Array
      • getVmwareGroupCollection

        public java.util.List<VmwareGroup> getVmwareGroupCollection()
        Method getVmwareGroupCollection.Returns a reference to '_vmwareGroupList'. No type checking is performed on any modifications to the Vector.
        Returns:
        a reference to the Vector backing this class
      • getVmwareGroupCount

        public int getVmwareGroupCount()
        Method getVmwareGroupCount.
        Returns:
        the size of this collection
      • iterateVmwareGroup

        public java.util.Iterator<VmwareGroup> iterateVmwareGroup()
        Method iterateVmwareGroup.
        Returns:
        an Iterator over all possible elements in this collection
      • removeAllVmwareGroup

        public void removeAllVmwareGroup()
      • removeVmwareGroup

        public boolean removeVmwareGroup​(VmwareGroup vVmwareGroup)
        Method removeVmwareGroup.
        Parameters:
        vVmwareGroup -
        Returns:
        true if the object was removed from the collection.
      • removeVmwareGroupAt

        public VmwareGroup removeVmwareGroupAt​(int index)
        Method removeVmwareGroupAt.
        Parameters:
        index -
        Returns:
        the element removed from the collection
      • setVmwareGroup

        public void setVmwareGroup​(int index,
                                   VmwareGroup vVmwareGroup)
                            throws java.lang.IndexOutOfBoundsException
        Parameters:
        index -
        vVmwareGroup -
        Throws:
        java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection
      • setVmwareGroup

        public void setVmwareGroup​(VmwareGroup[] vVmwareGroupArray)
        Parameters:
        vVmwareGroupArray -
      • setVmwareGroup

        public void setVmwareGroup​(java.util.List<VmwareGroup> vVmwareGroupList)
        Sets the value of '_vmwareGroupList' by copying the given Vector. All elements will be checked for type safety.
        Parameters:
        vVmwareGroupList - the Vector to copy.
      • setName

        public void setName​(java.lang.String name)
        Sets the value of field 'name'.
        Parameters:
        name - the value of field 'name'.
      • setRrd

        public void setRrd​(Rrd rrd)
        Sets the value of field 'rrd'. The field 'rrd' has the following description: RRD parms
        Parameters:
        rrd - the value of field 'rrd'.