Package org.opennms.netmgt.config
Class NotifdConfigManager
- java.lang.Object
-
- org.opennms.netmgt.config.NotifdConfigManager
-
- Direct Known Subclasses:
MockNotifdConfigManager
,NotifdConfigFactory
public abstract class NotifdConfigManager extends java.lang.Object
Abstract NotifdConfigManager class.
- Version:
- $Id: $
- Author:
- david TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
-
-
Field Summary
Fields Modifier and Type Field Description protected NotifdConfiguration
configuration
-
Constructor Summary
Constructors Constructor Description NotifdConfigManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Collection<AutoAcknowledge>
getAutoAcknowledges()
getAutoAcknowledgesNotifdConfiguration
getConfiguration()
Getter for the fieldconfiguration
.java.lang.String
getNextNotifIdSql()
getNextNotifIdSqljava.lang.String
getNextUserNotifIdSql()
getNextUserNotifIdSqlboolean
getNotificationMatch()
getNotificationMatchjava.lang.String
getNotificationStatus()
getNotificationStatusjava.util.Collection<java.lang.String>
getOutageCalendarNames()
getOutageCalendarNamesboolean
matchNotificationParameters(Event event, Notification notification)
matchNotificationParametersvoid
parseXml(java.io.InputStream stream)
parseXmlvoid
saveCurrent()
saveCurrentprotected abstract void
saveXml(java.lang.String xml)
saveXmlvoid
turnNotifdOff()
Turns the notifd service offvoid
turnNotifdOn()
Turns the notifd service onprotected abstract void
update()
update
-
-
-
Field Detail
-
configuration
protected NotifdConfiguration configuration
-
-
Method Detail
-
parseXml
public void parseXml(java.io.InputStream stream) throws java.io.IOException
parseXml
- Parameters:
stream
- aInputStream
object.- Throws:
java.io.IOException
- if any.
-
getConfiguration
public NotifdConfiguration getConfiguration() throws java.io.IOException
Getter for the field
configuration
.- Returns:
- a
NotifdConfiguration
object. - Throws:
java.io.IOException
- if any.
-
update
protected abstract void update() throws java.io.IOException
update
- Throws:
java.io.IOException
- if any.
-
getNotificationStatus
public java.lang.String getNotificationStatus() throws java.io.IOException
getNotificationStatus
- Returns:
- a
String
object. - Throws:
java.io.IOException
- if any.
-
turnNotifdOn
public final void turnNotifdOn() throws java.io.IOException
Turns the notifd service on- Throws:
java.io.IOException
- if any.
-
turnNotifdOff
public final void turnNotifdOff() throws java.io.IOException
Turns the notifd service off- Throws:
java.io.IOException
- if any.
-
getNotificationMatch
public boolean getNotificationMatch() throws java.io.IOException
getNotificationMatch
- Returns:
- a boolean.
- Throws:
java.io.IOException
- if any.
-
saveCurrent
public void saveCurrent() throws java.io.IOException
saveCurrent
- Throws:
java.io.IOException
- if any.
-
saveXml
protected abstract void saveXml(java.lang.String xml) throws java.io.IOException
saveXml
- Parameters:
xml
- aString
object.- Throws:
java.io.IOException
- if any.
-
getNextNotifIdSql
public java.lang.String getNextNotifIdSql() throws java.io.IOException
getNextNotifIdSql
- Returns:
- a
String
object. - Throws:
java.io.IOException
- if any.
-
matchNotificationParameters
public boolean matchNotificationParameters(Event event, Notification notification)
matchNotificationParameters
- Parameters:
event
- aEvent
object.notification
- aNotification
object.- Returns:
- a boolean.
-
getNextUserNotifIdSql
public java.lang.String getNextUserNotifIdSql() throws java.io.IOException
getNextUserNotifIdSql
- Returns:
- a
String
object. - Throws:
java.io.IOException
- if any.
-
getAutoAcknowledges
public java.util.Collection<AutoAcknowledge> getAutoAcknowledges() throws java.io.IOException
getAutoAcknowledges
- Returns:
- a
Collection
object. - Throws:
java.io.IOException
- if any.
-
getOutageCalendarNames
public java.util.Collection<java.lang.String> getOutageCalendarNames() throws java.io.IOException
getOutageCalendarNames
- Returns:
- a
Collection
object. - Throws:
java.io.IOException
- if any.
-
-