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.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(java.lang.String collectionName)
Builds the RRD repository.int
compareTo(TcaDataCollectionConfig obj)
boolean
equals(java.lang.Object obj)
TcaDataCollection
getDataCollectionByName(java.lang.String name)
Gets the data collection by name.java.lang.String
getRrdRepository()
Gets the RRD repository.java.util.List<TcaDataCollection>
getTcaDataCollections()
Gets the TCA data collections.int
hashCode()
void
removeDataCollection(TcaDataCollection dataCollection)
Removes the data collection.void
removeDataCollectionByName(java.lang.String name)
Removes the data collection by name.void
setRrdRepository(java.lang.String rrdRepository)
Sets the RRD repository.void
setTcaDataCollections(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:
compareTo
in interfacejava.lang.Comparable<TcaDataCollectionConfig>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-