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.ObjectAbstract 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 NotifdConfigurationconfiguration
-
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()getAutoAcknowledgesNotifdConfigurationgetConfiguration()Getter for the fieldconfiguration.java.lang.StringgetNextNotifIdSql()getNextNotifIdSqljava.lang.StringgetNextUserNotifIdSql()getNextUserNotifIdSqlbooleangetNotificationMatch()getNotificationMatchjava.lang.StringgetNotificationStatus()getNotificationStatusjava.util.Collection<java.lang.String>getOutageCalendarNames()getOutageCalendarNamesbooleanmatchNotificationParameters(Event event, Notification notification)matchNotificationParametersvoidparseXml(java.io.InputStream stream)parseXmlvoidsaveCurrent()saveCurrentprotected abstract voidsaveXml(java.lang.String xml)saveXmlvoidturnNotifdOff()Turns the notifd service offvoidturnNotifdOn()Turns the notifd service onprotected abstract voidupdate()update
-
-
-
Field Detail
-
configuration
protected NotifdConfiguration configuration
-
-
Method Detail
-
parseXml
public void parseXml(java.io.InputStream stream) throws java.io.IOExceptionparseXml
- Parameters:
stream- aInputStreamobject.- Throws:
java.io.IOException- if any.
-
getConfiguration
public NotifdConfiguration getConfiguration() throws java.io.IOException
Getter for the field
configuration.- Returns:
- a
NotifdConfigurationobject. - Throws:
java.io.IOException- if any.
-
update
protected abstract void update() throws java.io.IOExceptionupdate
- Throws:
java.io.IOException- if any.
-
getNotificationStatus
public java.lang.String getNotificationStatus() throws java.io.IOExceptiongetNotificationStatus
- Returns:
- a
Stringobject. - Throws:
java.io.IOException- if any.
-
turnNotifdOn
public final void turnNotifdOn() throws java.io.IOExceptionTurns the notifd service on- Throws:
java.io.IOException- if any.
-
turnNotifdOff
public final void turnNotifdOff() throws java.io.IOExceptionTurns the notifd service off- Throws:
java.io.IOException- if any.
-
getNotificationMatch
public boolean getNotificationMatch() throws java.io.IOExceptiongetNotificationMatch
- Returns:
- a boolean.
- Throws:
java.io.IOException- if any.
-
saveCurrent
public void saveCurrent() throws java.io.IOExceptionsaveCurrent
- Throws:
java.io.IOException- if any.
-
saveXml
protected abstract void saveXml(java.lang.String xml) throws java.io.IOExceptionsaveXml
- Parameters:
xml- aStringobject.- Throws:
java.io.IOException- if any.
-
getNextNotifIdSql
public java.lang.String getNextNotifIdSql() throws java.io.IOExceptiongetNextNotifIdSql
- Returns:
- a
Stringobject. - Throws:
java.io.IOException- if any.
-
matchNotificationParameters
public boolean matchNotificationParameters(Event event, Notification notification)
matchNotificationParameters
- Parameters:
event- aEventobject.notification- aNotificationobject.- Returns:
- a boolean.
-
getNextUserNotifIdSql
public java.lang.String getNextUserNotifIdSql() throws java.io.IOExceptiongetNextUserNotifIdSql
- Returns:
- a
Stringobject. - Throws:
java.io.IOException- if any.
-
getAutoAcknowledges
public java.util.Collection<AutoAcknowledge> getAutoAcknowledges() throws java.io.IOException
getAutoAcknowledges
- Returns:
- a
Collectionobject. - Throws:
java.io.IOException- if any.
-
getOutageCalendarNames
public java.util.Collection<java.lang.String> getOutageCalendarNames() throws java.io.IOExceptiongetOutageCalendarNames
- Returns:
- a
Collectionobject. - Throws:
java.io.IOException- if any.
-
-