Class CollectdConfiguration
- java.lang.Object
-
- org.opennms.netmgt.config.collectd.CollectdConfiguration
-
- All Implemented Interfaces:
Serializable
public class CollectdConfiguration extends Object implements Serializable
Top-level element for the collectd-configuration.xml configuration file.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectdConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCollector(String service, String className)
void
addCollector(Collector collector)
void
addPackage(Package p)
boolean
equals(Object obj)
CollectdConfiguration
getCollectdConfigurationForPackages(List<String> collectionPackageNames)
List<Collector>
getCollectors()
Filter
getFilter(String filterName)
Package
getPackage(String packageName)
List<Package>
getPackages()
Integer
getThreads()
The maximum number of threads used for data collection.int
hashCode()
boolean
removeCollector(Collector collector)
boolean
removePackage(Package p)
void
setCollectors(List<Collector> collectors)
void
setPackages(List<Package> packages)
void
setThreads(Integer threads)
String
toString()
-
-
-
Method Detail
-
getThreads
public Integer getThreads()
The maximum number of threads used for data collection.
-
setThreads
public void setThreads(Integer threads)
-
addPackage
public void addPackage(Package p) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removePackage
public boolean removePackage(Package p)
-
addCollector
public void addCollector(Collector collector) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeCollector
public boolean removeCollector(Collector collector)
-
getCollectdConfigurationForPackages
public CollectdConfiguration getCollectdConfigurationForPackages(List<String> collectionPackageNames)
-
-