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 NotifdConfigFactory
getInstance()
Getter for the fieldinstance
.static String
getPrettyStatus()
Gets a nicely formatted string for the Web UI to displaystatic void
init()
initvoid
reload()
reloadprotected void
saveXml(String xml)
saveXmlprotected void
update()
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
NotifdConfigFactory
object.
-
init
public static void init() throws IOException, FileNotFoundException
init
- Throws:
IOException
- if any.FileNotFoundException
- if any.
-
reload
public void reload() throws IOException, FileNotFoundException
reload
- Throws:
IOException
- if any.FileNotFoundException
- if any.
-
getPrettyStatus
public static String getPrettyStatus() throws 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:
IOException
- if any.
-
saveXml
protected void saveXml(String xml) throws IOException
saveXml
- Specified by:
saveXml
in classNotifdConfigManager
- Parameters:
xml
- aString
object.- Throws:
IOException
- if any.
-
update
protected void update() throws IOException
update
- Specified by:
update
in classNotifdConfigManager
- Throws:
IOException
- if any.
-
-