org.opennms.netmgt.config
Class NotifdConfigFactory

java.lang.Object
  extended by org.opennms.netmgt.config.NotifdConfigManager
      extended by org.opennms.netmgt.config.NotifdConfigFactory

public class NotifdConfigFactory
extends NotifdConfigManager


Field Summary
 
Fields inherited from class org.opennms.netmgt.config.NotifdConfigManager
configuration
 
Method Summary
static NotifdConfigFactory getInstance()
           
static String getPrettyStatus()
          Gets a nicely formatted string for the Web UI to display
static void init()
           
 void reload()
           
protected  void saveXml(String xml)
           
 void turnNotifdOff()
          Turns the notifd service off TODO: this was pulled up into the base class but is still here because of a reference from the webapp.
 void turnNotifdOn()
          Turns the notifd service on TODO: this was pulled up into the base class but is still here because of a reference from the webapp.
protected  void update()
           
 
Methods inherited from class org.opennms.netmgt.config.NotifdConfigManager
getAutoAcknowledges, getConfiguration, getNextNotifIdSql, getNextUserNotifIdSql, getNotificationMatch, getNotificationStatus, getOutageCalendarNames, matchNotificationParameters, parseXml, saveCurrent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static NotifdConfigFactory getInstance()

init

public static void init()
                 throws IOException,
                        FileNotFoundException,
                        org.exolab.castor.xml.MarshalException,
                        org.exolab.castor.xml.ValidationException
Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

reload

public void reload()
            throws IOException,
                   FileNotFoundException,
                   org.exolab.castor.xml.MarshalException,
                   org.exolab.castor.xml.ValidationException
Throws:
IOException
FileNotFoundException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

getPrettyStatus

public static String getPrettyStatus()
                              throws IOException,
                                     org.exolab.castor.xml.MarshalException,
                                     org.exolab.castor.xml.ValidationException
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:
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

turnNotifdOn

public void turnNotifdOn()
                  throws org.exolab.castor.xml.MarshalException,
                         org.exolab.castor.xml.ValidationException,
                         IOException
Turns the notifd service on TODO: this was pulled up into the base class but is still here because of a reference from the webapp. Fix up by renaming the method in the base class can calling that method from here.

Overrides:
turnNotifdOn in class NotifdConfigManager
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException

turnNotifdOff

public void turnNotifdOff()
                   throws org.exolab.castor.xml.MarshalException,
                          org.exolab.castor.xml.ValidationException,
                          IOException
Turns the notifd service off TODO: this was pulled up into the base class but is still here because of a reference from the webapp. Fix up by renaming the method in the base class can calling that method from here.

Overrides:
turnNotifdOff in class NotifdConfigManager
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException

saveXml

protected void saveXml(String xml)
                throws IOException
Specified by:
saveXml in class NotifdConfigManager
Parameters:
xml -
Throws:
IOException

update

protected void update()
               throws IOException,
                      org.exolab.castor.xml.MarshalException,
                      org.exolab.castor.xml.ValidationException
Specified by:
update in class NotifdConfigManager
Throws:
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException


Copyright © 2009. All Rights Reserved.