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 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 Collection<AutoAcknowledge>
getAutoAcknowledges()
getAutoAcknowledgesNotifdConfiguration
getConfiguration()
Getter for the fieldconfiguration
.String
getNextNotifIdSql()
getNextNotifIdSqlString
getNextUserNotifIdSql()
getNextUserNotifIdSqlboolean
getNotificationMatch()
getNotificationMatchString
getNotificationStatus()
getNotificationStatusCollection<String>
getOutageCalendarNames()
getOutageCalendarNamesboolean
matchNotificationParameters(Event event, Notification notification)
matchNotificationParametersvoid
parseXml(InputStream stream)
parseXmlvoid
saveCurrent()
saveCurrentprotected abstract void
saveXml(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(InputStream stream) throws IOException
parseXml
- Parameters:
stream
- aInputStream
object.- Throws:
IOException
- if any.
-
getConfiguration
public NotifdConfiguration getConfiguration() throws IOException
Getter for the field
configuration
.- Returns:
- a
NotifdConfiguration
object. - Throws:
IOException
- if any.
-
update
protected abstract void update() throws IOException
update
- Throws:
IOException
- if any.
-
getNotificationStatus
public String getNotificationStatus() throws IOException
getNotificationStatus
- Returns:
- a
String
object. - Throws:
IOException
- if any.
-
turnNotifdOn
public final void turnNotifdOn() throws IOException
Turns the notifd service on- Throws:
IOException
- if any.
-
turnNotifdOff
public final void turnNotifdOff() throws IOException
Turns the notifd service off- Throws:
IOException
- if any.
-
getNotificationMatch
public boolean getNotificationMatch() throws IOException
getNotificationMatch
- Returns:
- a boolean.
- Throws:
IOException
- if any.
-
saveCurrent
public void saveCurrent() throws IOException
saveCurrent
- Throws:
IOException
- if any.
-
saveXml
protected abstract void saveXml(String xml) throws IOException
saveXml
- Parameters:
xml
- aString
object.- Throws:
IOException
- if any.
-
getNextNotifIdSql
public String getNextNotifIdSql() throws IOException
getNextNotifIdSql
- Returns:
- a
String
object. - Throws:
IOException
- if any.
-
matchNotificationParameters
public boolean matchNotificationParameters(Event event, Notification notification)
matchNotificationParameters
- Parameters:
event
- aEvent
object.notification
- aNotification
object.- Returns:
- a boolean.
-
getNextUserNotifIdSql
public String getNextUserNotifIdSql() throws IOException
getNextUserNotifIdSql
- Returns:
- a
String
object. - Throws:
IOException
- if any.
-
getAutoAcknowledges
public Collection<AutoAcknowledge> getAutoAcknowledges() throws IOException
getAutoAcknowledges
- Returns:
- a
Collection
object. - Throws:
IOException
- if any.
-
getOutageCalendarNames
public Collection<String> getOutageCalendarNames() throws IOException
getOutageCalendarNames
- Returns:
- a
Collection
object. - Throws:
IOException
- if any.
-
-