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 StringgetPrettyStatus()Gets a nicely formatted string for the Web UI to displaystatic voidinit()initvoidreload()reloadprotected voidsaveXml(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 IOException, FileNotFoundExceptioninit
- Throws:
 IOException- if any.FileNotFoundException- if any.
 
- 
reload
public void reload() throws IOException, FileNotFoundExceptionreload
- 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:
 saveXmlin classNotifdConfigManager- Parameters:
 xml- aStringobject.- Throws:
 IOException- if any.
 
- 
update
protected void update() throws IOExceptionupdate
- Specified by:
 updatein classNotifdConfigManager- Throws:
 IOException- if any.
 
 - 
 
 -