Class NotifdConfigFactory


  • public class NotifdConfigFactory
    extends NotifdConfigManager

    NotifdConfigFactory class.

    Version:
    $Id: $
    Author:
    ranger
    • Method Detail

      • init

        public static void init()
                         throws java.io.IOException,
                                java.io.FileNotFoundException

        init

        Throws:
        java.io.IOException - if any.
        java.io.FileNotFoundException - if any.
      • reload

        public void reload()
                    throws java.io.IOException,
                           java.io.FileNotFoundException

        reload

        Throws:
        java.io.IOException - if any.
        java.io.FileNotFoundException - if any.
      • getPrettyStatus

        public static java.lang.String getPrettyStatus()
                                                throws java.io.IOException
        Gets a nicely formatted string for the Web UI to display
        Returns:
        On, Off, or Unknown depending on status TODO: Pull up into base class but keep this reference for the webapp until singleton is removed.
        Throws:
        java.io.IOException - if any.
      • saveXml

        protected void saveXml​(java.lang.String xml)
                        throws java.io.IOException

        saveXml

        Specified by:
        saveXml in class NotifdConfigManager
        Parameters:
        xml - a String object.
        Throws:
        java.io.IOException - if any.
      • update

        protected void update()
                       throws java.io.IOException

        update

        Specified by:
        update in class NotifdConfigManager
        Throws:
        java.io.IOException - if any.