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(java.lang.String configString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNextNotifIdSql()
getNextNotifIdSqljava.lang.String
getNextUserNotifIdSql()
getNextUserNotifIdSqlprotected void
saveXml(java.lang.String xml)
saveXmlvoid
setNextNotifIdSql(java.lang.String sql)
void
setNextUserNotifIdSql(java.lang.String sql)
protected void
update()
update-
Methods inherited from class org.opennms.netmgt.config.NotifdConfigManager
getAutoAcknowledges, getConfiguration, getNotificationMatch, getNotificationStatus, getOutageCalendarNames, matchNotificationParameters, parseXml, saveCurrent, turnNotifdOff, turnNotifdOn
-
-
-
-
Method Detail
-
update
protected void update() throws java.io.IOException
Description copied from class:NotifdConfigManager
update
- Specified by:
update
in classNotifdConfigManager
- Throws:
java.io.IOException
- if any.
-
saveXml
protected void saveXml(java.lang.String xml) throws java.io.IOException
Description copied from class:NotifdConfigManager
saveXml
- Specified by:
saveXml
in classNotifdConfigManager
- Parameters:
xml
- aString
object.- Throws:
java.io.IOException
- if any.
-
getNextNotifIdSql
public java.lang.String getNextNotifIdSql() throws java.io.IOException
Description copied from class:NotifdConfigManager
getNextNotifIdSql
- Overrides:
getNextNotifIdSql
in classNotifdConfigManager
- Returns:
- a
String
object. - Throws:
java.io.IOException
- if any.
-
setNextNotifIdSql
public void setNextNotifIdSql(java.lang.String sql)
-
getNextUserNotifIdSql
public java.lang.String getNextUserNotifIdSql() throws java.io.IOException
Description copied from class:NotifdConfigManager
getNextUserNotifIdSql
- Overrides:
getNextUserNotifIdSql
in classNotifdConfigManager
- Returns:
- a
String
object. - Throws:
java.io.IOException
- if any.
-
setNextUserNotifIdSql
public void setNextUserNotifIdSql(java.lang.String sql)
-
-