org.opennms.netmgt.config
Class CollectdConfig

java.lang.Object
  extended by org.opennms.netmgt.config.CollectdConfig

public class CollectdConfig
extends Object


Constructor Summary
protected CollectdConfig(CollectdConfiguration config, String localServer, boolean verifyServer)
          Convenience object for CollectdConfiguration.
 
Method Summary
protected  void createPackageIpListMap(String localServer, boolean verifyServer)
          This method is used to establish package agaist iplist mapping, with which, the iplist is selected per package via the configured filter rules from the database.
 boolean domainExists(String name)
          Returns true if collection domain exists
 CollectdConfiguration getConfig()
          getConfig
 CollectdPackage getPackage(String name)
          getPackage
 Collection<CollectdPackage> getPackages()
          getPackages
 int getThreads()
          getThreads
protected  void initialize(String localServer, boolean verifyServer)
          initialize
 boolean isServiceCollectionEnabled(String ipAddr, String svcName)
          Returns true if the specified interface is included by at least one package which has the specified service and that service is enabled (set to "on").
 void rebuildPackageIpListMap()
          rebuildPackageIpListMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectdConfig

protected CollectdConfig(CollectdConfiguration config,
                         String localServer,
                         boolean verifyServer)
Convenience object for CollectdConfiguration.

Parameters:
config - collectd configuration object
localServer - local server name from opennms-server.xml
verifyServer - verify server option from opennms-server.xml
Method Detail

getConfig

public CollectdConfiguration getConfig()

getConfig

Returns:
a CollectdConfiguration object.

getPackages

public Collection<CollectdPackage> getPackages()

getPackages

Returns:
a Collection object.

getThreads

public int getThreads()

getThreads

Returns:
a int.

createPackageIpListMap

protected void createPackageIpListMap(String localServer,
                                      boolean verifyServer)
This method is used to establish package agaist iplist mapping, with which, the iplist is selected per package via the configured filter rules from the database.

Parameters:
localServer2 -
localServer - TODO
verifyServer2 -
verifyServer - TODO

rebuildPackageIpListMap

public void rebuildPackageIpListMap()

rebuildPackageIpListMap


initialize

protected void initialize(String localServer,
                          boolean verifyServer)

initialize

Parameters:
localServer - TODO
verifyServer - TODO

getPackage

public CollectdPackage getPackage(String name)

getPackage

Parameters:
name - a String object.
Returns:
a CollectdPackage object.

domainExists

public boolean domainExists(String name)
Returns true if collection domain exists

Parameters:
name - The domain name to check
Returns:
True if the domain exists

isServiceCollectionEnabled

public boolean isServiceCollectionEnabled(String ipAddr,
                                          String svcName)
Returns true if the specified interface is included by at least one package which has the specified service and that service is enabled (set to "on").

Parameters:
ipAddr - IP address of the interface to lookup
svcName - The service name to lookup
Returns:
true if Collectd config contains a package which includes the specified interface and has the specified service enabled.


Copyright © 2011. All Rights Reserved.