Class XmlDataCollection

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<XmlDataCollection>

    public class XmlDataCollection
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<XmlDataCollection>, java.lang.Cloneable
    The Class XmlDataCollection.
     <xml-datacollection-config rrdRepository="/opt/opennms/share/rrd/snmp/"
        xmlns="http://xmlns.opennms.org/xsd/config/xml-datacollection">
        <xml-collection name="3GPP">
             <rrd step="300">
                  <rra>RRA:AVERAGE:0.5:1:8928</rra>
                  <rra>RRA:AVERAGE:0.5:12:8784</rra>
                  <rra>RRA:MIN:0.5:12:8784</rra>
                  <rra>RRA:MAX:0.5:12:8784</rra>
             </rrd>
             <xml-source url="sftp://{ipaddr}/opt/hitachi/cnp/data/pm/reports/3gpp/5/A{3gpp-range}_MME00001.xml"
                  user-name="opennms" password="Op3nNmS!">
                 <xml-group name="platform-system-resource" resource-type="platformSystemResource"
                      key-xpath="@measObjLdn"
                      resource-xpath="/measCollecFile/measData/measInfo[@measInfoId='platform-system|resource']/measValue">
                      <xml-object name="cpuUtilization" type="GAUGE" xpath="r[@p=1]" />
                      <xml-object name="memUtilization" type="GAUGE" xpath="r[@p=2]" />
                      <xml-object name="suspect" type="STRING" xpath="suspect" />
                 </xml-group>
             </xml-source>
        </xml-collection>
     </xml-datacollection-config>
     
    Author:
    Alejandro Galue
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlDataCollection

        public XmlDataCollection()
        Instantiates a new XML data collection.
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the name.
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Sets the name.
        Parameters:
        name - the new name
      • getXmlRrd

        public XmlRrd getXmlRrd()
        Gets the XML RRD.
        Returns:
        the XML RRD
      • setXmlRrd

        public void setXmlRrd​(XmlRrd xmlRrd)
        Sets the XML RRD.
        Parameters:
        xmlRrd - the new XML RRD
      • getXmlSources

        public java.util.List<XmlSource> getXmlSources()
        Gets the XML sources.
        Returns:
        the XML sources
      • setXmlSources

        public void setXmlSources​(java.util.List<XmlSource> xmlSources)
        Sets the XML sources.
        Parameters:
        xmlSources - the new XML sources
      • addXmlSource

        public void addXmlSource​(XmlSource source)
        Adds a new XML source.
        Parameters:
        source - the source
      • removeXmlSource

        public void removeXmlSource​(XmlSource source)
        Removes a XML source.
        Parameters:
        source - the source
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • clone

        public XmlDataCollection clone()
        Overrides:
        clone in class java.lang.Object