Class 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 Detail

      • CollectdConfiguration

        public CollectdConfiguration()
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object