public class XmlDataCollection extends Object implements Serializable, Comparable<XmlDataCollection>, Cloneable
<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>
Constructor and Description |
---|
XmlDataCollection()
Instantiates a new XML data collection.
|
XmlDataCollection(XmlDataCollection copy) |
Modifier and Type | Method and Description |
---|---|
void |
addXmlSource(XmlSource source)
Adds a new XML source.
|
XmlDataCollection |
clone() |
int |
compareTo(XmlDataCollection obj) |
boolean |
equals(Object obj) |
String |
getName()
Gets the name.
|
XmlRrd |
getXmlRrd()
Gets the XML RRD.
|
List<XmlSource> |
getXmlSources()
Gets the XML sources.
|
void |
removeXmlSource(XmlSource source)
Removes a XML source.
|
void |
setName(String name)
Sets the name.
|
void |
setXmlRrd(XmlRrd xmlRrd)
Sets the XML RRD.
|
void |
setXmlSources(List<XmlSource> xmlSources)
Sets the XML sources.
|
public XmlDataCollection()
public XmlDataCollection(XmlDataCollection copy)
public String getName()
public void setName(String name)
name
- the new namepublic XmlRrd getXmlRrd()
public void setXmlRrd(XmlRrd xmlRrd)
xmlRrd
- the new XML RRDpublic void setXmlSources(List<XmlSource> xmlSources)
xmlSources
- the new XML sourcespublic void addXmlSource(XmlSource source)
source
- the sourcepublic void removeXmlSource(XmlSource source)
source
- the sourcepublic int compareTo(XmlDataCollection obj)
compareTo
in interface Comparable<XmlDataCollection>
public XmlDataCollection clone()
Copyright © 2021. All rights reserved.