Class TcaDataCollectionConfig
- java.lang.Object
-
- org.opennms.netmgt.collectd.tca.config.TcaDataCollectionConfig
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TcaDataCollectionConfig>
public class TcaDataCollectionConfig extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<TcaDataCollectionConfig>
The Class TcaDataCollectionConfig.- Author:
- Alejandro Galue
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.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(java.lang.String collectionName)Builds the RRD repository.intcompareTo(TcaDataCollectionConfig obj)booleanequals(java.lang.Object obj)TcaDataCollectiongetDataCollectionByName(java.lang.String name)Gets the data collection by name.java.lang.StringgetRrdRepository()Gets the RRD repository.java.util.List<TcaDataCollection>getTcaDataCollections()Gets the TCA data collections.inthashCode()voidremoveDataCollection(TcaDataCollection dataCollection)Removes the data collection.voidremoveDataCollectionByName(java.lang.String name)Removes the data collection by name.voidsetRrdRepository(java.lang.String rrdRepository)Sets the RRD repository.voidsetTcaDataCollections(java.util.List<TcaDataCollection> tcaDataCollections)Sets the TCA data collections.
-
-
-
Field Detail
-
TCA_DATACOLLECTION_CONFIG_FILE
public static final java.lang.String TCA_DATACOLLECTION_CONFIG_FILE
The Constant TCA_DATACOLLECTION_CONFIG_FILE.- See Also:
- Constant Field Values
-
-
Method Detail
-
getRrdRepository
public java.lang.String getRrdRepository()
Gets the RRD repository.- Returns:
- the RRD repository
-
setRrdRepository
public void setRrdRepository(java.lang.String rrdRepository)
Sets the RRD repository.- Parameters:
rrdRepository- the new RRD repository
-
getTcaDataCollections
public java.util.List<TcaDataCollection> getTcaDataCollections()
Gets the TCA data collections.- Returns:
- the TCA data collections
-
setTcaDataCollections
public void setTcaDataCollections(java.util.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(java.lang.String name)
Removes the data collection by name.- Parameters:
name- the name
-
getDataCollectionByName
public TcaDataCollection getDataCollectionByName(java.lang.String name)
Gets the data collection by name.- Parameters:
name- the name- Returns:
- the data collection by name
-
buildRrdRepository
public RrdRepository buildRrdRepository(java.lang.String collectionName)
Builds the RRD repository.- Parameters:
collectionName- the collection name- Returns:
- the RRD repository
-
compareTo
public int compareTo(TcaDataCollectionConfig obj)
- Specified by:
compareToin interfacejava.lang.Comparable<TcaDataCollectionConfig>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-