Class TcaDataCollectionConfig
- java.lang.Object
-
- org.opennms.netmgt.collectd.tca.config.TcaDataCollectionConfig
-
- All Implemented Interfaces:
Serializable,Comparable<TcaDataCollectionConfig>
public class TcaDataCollectionConfig extends Object implements Serializable, Comparable<TcaDataCollectionConfig>
The Class TcaDataCollectionConfig.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringTCA_DATACOLLECTION_CONFIG_FILEThe Constant TCA_DATACOLLECTION_CONFIG_FILE.
-
Constructor Summary
Constructors Constructor Description TcaDataCollectionConfig()Instantiates a new TCA data collection configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataCollection(TcaDataCollection dataCollection)Adds the data collection.RrdRepositorybuildRrdRepository(String collectionName)Builds the RRD repository.intcompareTo(TcaDataCollectionConfig obj)booleanequals(Object obj)TcaDataCollectiongetDataCollectionByName(String name)Gets the data collection by name.StringgetRrdRepository()Gets the RRD repository.List<TcaDataCollection>getTcaDataCollections()Gets the TCA data collections.inthashCode()voidremoveDataCollection(TcaDataCollection dataCollection)Removes the data collection.voidremoveDataCollectionByName(String name)Removes the data collection by name.voidsetRrdRepository(String rrdRepository)Sets the RRD repository.voidsetTcaDataCollections(List<TcaDataCollection> tcaDataCollections)Sets the TCA data collections.
-
-
-
Field Detail
-
TCA_DATACOLLECTION_CONFIG_FILE
public static final String TCA_DATACOLLECTION_CONFIG_FILE
The Constant TCA_DATACOLLECTION_CONFIG_FILE.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
getTcaDataCollections
public List<TcaDataCollection> getTcaDataCollections()
Gets the TCA data collections.- Returns:
- the TCA data collections
-
setTcaDataCollections
public void setTcaDataCollections(List<TcaDataCollection> tcaDataCollections)
Sets the TCA data collections.- Parameters:
tcaDataCollections- the new TCA data collections
-
addDataCollection
public void addDataCollection(TcaDataCollection dataCollection)
Adds the data collection.- Parameters:
dataCollection- the data collection
-
removeDataCollection
public void removeDataCollection(TcaDataCollection 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 TcaDataCollection getDataCollectionByName(String name)
Gets the data collection by name.- Parameters:
name- the name- Returns:
- the data collection by name
-
buildRrdRepository
public RrdRepository buildRrdRepository(String collectionName)
Builds the RRD repository.- Parameters:
collectionName- the collection name- Returns:
- the RRD repository
-
compareTo
public int compareTo(TcaDataCollectionConfig obj)
- Specified by:
compareToin interfaceComparable<TcaDataCollectionConfig>
-
-