Class XmlDataCollection

  • All Implemented Interfaces:
    Serializable, Cloneable, Comparable<XmlDataCollection>

    public class XmlDataCollection
    extends Object
    implements Serializable, Comparable<XmlDataCollection>, 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 String getName()
        Gets the name.
        Returns:
        the name
      • setName

        public void setName​(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 List<XmlSource> getXmlSources()
        Gets the XML sources.
        Returns:
        the XML sources
      • setXmlSources

        public void setXmlSources​(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