Class CollectdConfiguration
- java.lang.Object
-
- org.opennms.netmgt.config.collectd.CollectdConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class CollectdConfiguration extends java.lang.Object implements java.io.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(java.lang.String service, java.lang.String className)
void
addCollector(Collector collector)
void
addPackage(Package p)
boolean
equals(java.lang.Object obj)
CollectdConfiguration
getCollectdConfigurationForPackages(java.util.List<java.lang.String> collectionPackageNames)
java.util.List<Collector>
getCollectors()
Filter
getFilter(java.lang.String filterName)
Package
getPackage(java.lang.String packageName)
java.util.List<Package>
getPackages()
java.lang.Integer
getThreads()
The maximum number of threads used for data collection.int
hashCode()
boolean
removeCollector(Collector collector)
boolean
removePackage(Package p)
void
setCollectors(java.util.List<Collector> collectors)
void
setPackages(java.util.List<Package> packages)
void
setThreads(java.lang.Integer threads)
java.lang.String
toString()
-
-
-
Method Detail
-
getThreads
public java.lang.Integer getThreads()
The maximum number of threads used for data collection.
-
setThreads
public void setThreads(java.lang.Integer threads)
-
getPackages
public java.util.List<Package> getPackages()
-
setPackages
public void setPackages(java.util.List<Package> packages)
-
addPackage
public void addPackage(Package p) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
removePackage
public boolean removePackage(Package p)
-
getPackage
public Package getPackage(java.lang.String packageName)
-
getCollectors
public java.util.List<Collector> getCollectors()
-
setCollectors
public void setCollectors(java.util.List<Collector> collectors)
-
addCollector
public void addCollector(Collector collector) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
addCollector
public void addCollector(java.lang.String service, java.lang.String className)
-
removeCollector
public boolean removeCollector(Collector collector)
-
getFilter
public Filter getFilter(java.lang.String filterName)
-
getCollectdConfigurationForPackages
public CollectdConfiguration getCollectdConfigurationForPackages(java.util.List<java.lang.String> collectionPackageNames)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-