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 String
getNextNotifIdSql()
getNextNotifIdSqlString
getNextUserNotifIdSql()
getNextUserNotifIdSqlprotected void
saveXml(String xml)
saveXmlvoid
setNextNotifIdSql(String sql)
void
setNextUserNotifIdSql(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
-
-
-
-
Constructor Detail
-
MockNotifdConfigManager
public MockNotifdConfigManager(String configString) throws IOException
- Parameters:
configString
-- Throws:
IOException
-
-
Method Detail
-
update
protected void update() throws IOException
Description copied from class:NotifdConfigManager
update
- Specified by:
update
in classNotifdConfigManager
- Throws:
IOException
- if any.
-
saveXml
protected void saveXml(String xml) throws IOException
Description copied from class:NotifdConfigManager
saveXml
- Specified by:
saveXml
in classNotifdConfigManager
- Parameters:
xml
- aString
object.- Throws:
IOException
- if any.
-
getNextNotifIdSql
public String getNextNotifIdSql() throws IOException
Description copied from class:NotifdConfigManager
getNextNotifIdSql
- Overrides:
getNextNotifIdSql
in classNotifdConfigManager
- Returns:
- a
String
object. - Throws:
IOException
- if any.
-
setNextNotifIdSql
public void setNextNotifIdSql(String sql)
-
getNextUserNotifIdSql
public String getNextUserNotifIdSql() throws IOException
Description copied from class:NotifdConfigManager
getNextUserNotifIdSql
- Overrides:
getNextUserNotifIdSql
in classNotifdConfigManager
- Returns:
- a
String
object. - Throws:
IOException
- if any.
-
setNextUserNotifIdSql
public void setNextUserNotifIdSql(String sql)
-
-