Package org.opennms.protocols.xml.config
Class XmlDataCollectionConfig
- java.lang.Object
-
- org.opennms.protocols.xml.config.XmlDataCollectionConfig
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<XmlDataCollectionConfig>
public class XmlDataCollectionConfig extends Object implements Serializable, Comparable<XmlDataCollectionConfig>, Cloneable
The Class XmlDataCollectionConfig.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
XML_DATACOLLECTION_CONFIG_FILE
The Constant XML_DATACOLLECTION_CONFIG_FILE.
-
Constructor Summary
Constructors Constructor Description XmlDataCollectionConfig()
Instantiates a new XML data collection configuration.XmlDataCollectionConfig(XmlDataCollectionConfig copy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataCollection(XmlDataCollection dataCollection)
Adds the data collection.RrdRepository
buildRrdRepository(String collectionName)
Builds the RRD repository.static RrdRepository
buildRrdRepository(String rrdRepositoryPath, XmlDataCollection collection)
XmlDataCollectionConfig
clone()
int
compareTo(XmlDataCollectionConfig obj)
boolean
equals(Object obj)
XmlDataCollection
getDataCollectionByName(String name)
Gets the data collection by name.String
getRrdRepository()
Gets the RRD repository.List<XmlDataCollection>
getXmlDataCollections()
Gets the XML data collections.void
removeDataCollection(XmlDataCollection dataCollection)
Removes the data collection.void
removeDataCollectionByName(String name)
Removes the data collection by name.void
setRrdRepository(String rrdRepository)
Sets the RRD repository.void
setXmlDataCollections(List<XmlDataCollection> xmlDataCollections)
Sets the XML data collections.
-
-
-
Field Detail
-
XML_DATACOLLECTION_CONFIG_FILE
public static final String XML_DATACOLLECTION_CONFIG_FILE
The Constant XML_DATACOLLECTION_CONFIG_FILE.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XmlDataCollectionConfig
public XmlDataCollectionConfig()
Instantiates a new XML data collection configuration.
-
XmlDataCollectionConfig
public XmlDataCollectionConfig(XmlDataCollectionConfig copy)
-
-
Method Detail
-
getXmlDataCollections
public List<XmlDataCollection> getXmlDataCollections()
Gets the XML data collections.- Returns:
- the XML data collections
-
setXmlDataCollections
public void setXmlDataCollections(List<XmlDataCollection> xmlDataCollections)
Sets the XML data collections.- Parameters:
xmlDataCollections
- the new XML data collections
-
getRrdRepository
public String getRrdRepository()
Gets the RRD repository.- Returns:
- the RRD repository
-
setRrdRepository
public void setRrdRepository(String rrdRepository)
Sets the RRD repository.- Parameters:
rrdRepository
- the new RRD repository
-
addDataCollection
public void addDataCollection(XmlDataCollection dataCollection)
Adds the data collection.- Parameters:
dataCollection
- the data collection
-
removeDataCollection
public void removeDataCollection(XmlDataCollection dataCollection)
Removes the data collection.- Parameters:
dataCollection
- the data collection
-
removeDataCollectionByName
public void removeDataCollectionByName(String name)
Removes the data collection by name.- Parameters:
name
- the name
-
getDataCollectionByName
public XmlDataCollection getDataCollectionByName(String name)
Gets the data collection by name.- Parameters:
name
- the name- Returns:
- the data collection by name
-
buildRrdRepository
public static RrdRepository buildRrdRepository(String rrdRepositoryPath, XmlDataCollection collection)
-
buildRrdRepository
public RrdRepository buildRrdRepository(String collectionName)
Builds the RRD repository.- Parameters:
collectionName
- the collection name- Returns:
- the RRD repository
-
compareTo
public int compareTo(XmlDataCollectionConfig obj)
- Specified by:
compareTo
in interfaceComparable<XmlDataCollectionConfig>
-
clone
public XmlDataCollectionConfig clone()
-
-