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 String
TCA_DATACOLLECTION_CONFIG_FILE
The 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 void
addDataCollection(TcaDataCollection dataCollection)
Adds the data collection.RrdRepository
buildRrdRepository(String collectionName)
Builds the RRD repository.int
compareTo(TcaDataCollectionConfig obj)
boolean
equals(Object obj)
TcaDataCollection
getDataCollectionByName(String name)
Gets the data collection by name.String
getRrdRepository()
Gets the RRD repository.List<TcaDataCollection>
getTcaDataCollections()
Gets the TCA data collections.int
hashCode()
void
removeDataCollection(TcaDataCollection dataCollection)
Removes the data collection.void
removeDataCollectionByName(String name)
Removes the data collection by name.void
setRrdRepository(String rrdRepository)
Sets the RRD repository.void
setTcaDataCollections(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:
compareTo
in interfaceComparable<TcaDataCollectionConfig>
-
-