Package org.opennms.netmgt.config
Class NotifdConfigFactory
- java.lang.Object
-
- org.opennms.netmgt.config.NotifdConfigManager
-
- org.opennms.netmgt.config.NotifdConfigFactory
-
public class NotifdConfigFactory extends NotifdConfigManager
NotifdConfigFactory class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.config.NotifdConfigManager
configuration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotifdConfigFactorygetInstance()Getter for the fieldinstance.static java.lang.StringgetPrettyStatus()Gets a nicely formatted string for the Web UI to displaystatic voidinit()initvoidreload()reloadprotected voidsaveXml(java.lang.String xml)saveXmlprotected voidupdate()update-
Methods inherited from class org.opennms.netmgt.config.NotifdConfigManager
getAutoAcknowledges, getConfiguration, getNextNotifIdSql, getNextUserNotifIdSql, getNotificationMatch, getNotificationStatus, getOutageCalendarNames, matchNotificationParameters, parseXml, saveCurrent, turnNotifdOff, turnNotifdOn
-
-
-
-
Method Detail
-
getInstance
public static NotifdConfigFactory getInstance()
Getter for the field
instance.- Returns:
- a
NotifdConfigFactoryobject.
-
init
public static void init() throws java.io.IOException, java.io.FileNotFoundExceptioninit
- Throws:
java.io.IOException- if any.java.io.FileNotFoundException- if any.
-
reload
public void reload() throws java.io.IOException, java.io.FileNotFoundExceptionreload
- Throws:
java.io.IOException- if any.java.io.FileNotFoundException- if any.
-
getPrettyStatus
public static java.lang.String getPrettyStatus() throws java.io.IOExceptionGets 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.IOExceptionsaveXml
- Specified by:
saveXmlin classNotifdConfigManager- Parameters:
xml- aStringobject.- Throws:
java.io.IOException- if any.
-
update
protected void update() throws java.io.IOExceptionupdate
- Specified by:
updatein classNotifdConfigManager- Throws:
java.io.IOException- if any.
-
-