Class PollerConfigFactory

  • All Implemented Interfaces:
    PathOutageConfig, PollerConfig

    public final class PollerConfigFactory
    extends PollerConfigManager
    This is the singleton class used to load the configuration for the OpenNMS Poller service from the poller-configuration XML file. A mapping of the configured URLs to the iplist they contain is built at init() time so as to avoid numerous file reads. Note: Users of this class should make sure the init() is called before calling any other method to ensure the config is loaded before accessing other convenience methods.
    Author:
    James Zuo , Mike Davidson , Sowmya Nataraj , OpenNMS
    • Constructor Detail

      • PollerConfigFactory

        public PollerConfigFactory​(long currentVersion,
                                   InputStream stream)

        Constructor for PollerConfigFactory.

        Parameters:
        currentVersion - a long.
        stream - a InputStream object.