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 java.lang.String
getPrettyStatus()
Gets a nicely formatted string for the Web UI to displaystatic void
init()
initvoid
reload()
reloadprotected void
saveXml(java.lang.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 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 classNotifdConfigManager
- Parameters:
xml
- aString
object.- Throws:
java.io.IOException
- if any.
-
update
protected void update() throws java.io.IOException
update
- Specified by:
update
in classNotifdConfigManager
- Throws:
java.io.IOException
- if any.
-
-