Package org.opennms.protocols.xml.config
Class XmlDataCollection
- java.lang.Object
-
- org.opennms.protocols.xml.config.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 Summary
Constructors Constructor Description XmlDataCollection()
Instantiates a new XML data collection.XmlDataCollection(XmlDataCollection copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
XmlDataCollection
public XmlDataCollection()
Instantiates a new XML data collection.
-
XmlDataCollection
public XmlDataCollection(XmlDataCollection copy)
-
-
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
-
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
-
compareTo
public int compareTo(XmlDataCollection obj)
- Specified by:
compareTo
in interfaceComparable<XmlDataCollection>
-
clone
public XmlDataCollection clone()
-
-