Package org.opennms.netmgt.config.mock
Class MockNotifdConfigManager
- java.lang.Object
-
- org.opennms.netmgt.config.NotifdConfigManager
-
- org.opennms.netmgt.config.mock.MockNotifdConfigManager
-
public class MockNotifdConfigManager extends NotifdConfigManager
- Author:
- David Hustace
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.config.NotifdConfigManager
configuration
-
-
Constructor Summary
Constructors Constructor Description MockNotifdConfigManager(String configString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNextNotifIdSql()getNextNotifIdSqlStringgetNextUserNotifIdSql()getNextUserNotifIdSqlprotected voidsaveXml(String xml)saveXmlvoidsetNextNotifIdSql(String sql)voidsetNextUserNotifIdSql(String sql)protected voidupdate()update-
Methods inherited from class org.opennms.netmgt.config.NotifdConfigManager
getAutoAcknowledges, getConfiguration, getNotificationMatch, getNotificationStatus, getOutageCalendarNames, matchNotificationParameters, parseXml, saveCurrent, turnNotifdOff, turnNotifdOn
-
-
-
-
Constructor Detail
-
MockNotifdConfigManager
public MockNotifdConfigManager(String configString) throws IOException
- Parameters:
configString-- Throws:
IOException
-
-
Method Detail
-
update
protected void update() throws IOExceptionDescription copied from class:NotifdConfigManagerupdate
- Specified by:
updatein classNotifdConfigManager- Throws:
IOException- if any.
-
saveXml
protected void saveXml(String xml) throws IOException
Description copied from class:NotifdConfigManagersaveXml
- Specified by:
saveXmlin classNotifdConfigManager- Parameters:
xml- aStringobject.- Throws:
IOException- if any.
-
getNextNotifIdSql
public String getNextNotifIdSql() throws IOException
Description copied from class:NotifdConfigManagergetNextNotifIdSql
- Overrides:
getNextNotifIdSqlin classNotifdConfigManager- Returns:
- a
Stringobject. - Throws:
IOException- if any.
-
setNextNotifIdSql
public void setNextNotifIdSql(String sql)
-
getNextUserNotifIdSql
public String getNextUserNotifIdSql() throws IOException
Description copied from class:NotifdConfigManagergetNextUserNotifIdSql
- Overrides:
getNextUserNotifIdSqlin classNotifdConfigManager- Returns:
- a
Stringobject. - Throws:
IOException- if any.
-
setNextUserNotifIdSql
public void setNextUserNotifIdSql(String sql)
-
-