org.opennms.netmgt.config

Class EventdConfigFactory

    • Method Detail

      • init

        public static void init()
                         throws IOException,
                                org.exolab.castor.xml.MarshalException,
                                org.exolab.castor.xml.ValidationException
        Load the config from the default config file and create the singleton instance of this factory.
        Throws:
        IOException - Thrown if the specified config file cannot be read
        org.exolab.castor.xml.MarshalException - Thrown if the file does not conform to the schema.
        org.exolab.castor.xml.ValidationException - Thrown if the contents do not match the required schema.
        IOException - if any.
        org.exolab.castor.xml.MarshalException - if any.
        org.exolab.castor.xml.ValidationException - if any.
      • reload

        public static void reload()
                           throws IOException,
                                  org.exolab.castor.xml.MarshalException,
                                  org.exolab.castor.xml.ValidationException
        Reload the config from the default config file
        Throws:
        IOException - Thrown if the specified config file cannot be read/loaded
        org.exolab.castor.xml.MarshalException - Thrown if the file does not conform to the schema.
        org.exolab.castor.xml.ValidationException - Thrown if the contents do not match the required schema.
        IOException - if any.
        org.exolab.castor.xml.MarshalException - if any.
        org.exolab.castor.xml.ValidationException - if any.
      • getInstance

        public static EventdConfigManager getInstance()
        Return the singleton instance of this factory.
        Returns:
        The current factory instance.
        Throws:
        IllegalStateException - Thrown if the factory has not yet been initialized.

Copyright © 2015. All Rights Reserved.