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 NotifdConfigurationconfiguration
-
Constructor Summary
Constructors Constructor Description NotifdConfigManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<AutoAcknowledge>getAutoAcknowledges()getAutoAcknowledgesNotifdConfigurationgetConfiguration()Getter for the fieldconfiguration.StringgetNextNotifIdSql()getNextNotifIdSqlStringgetNextUserNotifIdSql()getNextUserNotifIdSqlbooleangetNotificationMatch()getNotificationMatchStringgetNotificationStatus()getNotificationStatusCollection<String>getOutageCalendarNames()getOutageCalendarNamesbooleanmatchNotificationParameters(Event event, Notification notification)matchNotificationParametersvoidparseXml(InputStream stream)parseXmlvoidsaveCurrent()saveCurrentprotected abstract voidsaveXml(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(InputStream stream) throws IOException
parseXml
- Parameters:
stream- aInputStreamobject.- Throws:
IOException- if any.
-
getConfiguration
public NotifdConfiguration getConfiguration() throws IOException
Getter for the field
configuration.- Returns:
- a
NotifdConfigurationobject. - Throws:
IOException- if any.
-
update
protected abstract void update() throws IOExceptionupdate
- Throws:
IOException- if any.
-
getNotificationStatus
public String getNotificationStatus() throws IOException
getNotificationStatus
- Returns:
- a
Stringobject. - Throws:
IOException- if any.
-
turnNotifdOn
public final void turnNotifdOn() throws IOExceptionTurns the notifd service on- Throws:
IOException- if any.
-
turnNotifdOff
public final void turnNotifdOff() throws IOExceptionTurns the notifd service off- Throws:
IOException- if any.
-
getNotificationMatch
public boolean getNotificationMatch() throws IOExceptiongetNotificationMatch
- Returns:
- a boolean.
- Throws:
IOException- if any.
-
saveCurrent
public void saveCurrent() throws IOExceptionsaveCurrent
- Throws:
IOException- if any.
-
saveXml
protected abstract void saveXml(String xml) throws IOException
saveXml
- Parameters:
xml- aStringobject.- Throws:
IOException- if any.
-
getNextNotifIdSql
public String getNextNotifIdSql() throws IOException
getNextNotifIdSql
- Returns:
- a
Stringobject. - Throws:
IOException- if any.
-
matchNotificationParameters
public boolean matchNotificationParameters(Event event, Notification notification)
matchNotificationParameters
- Parameters:
event- aEventobject.notification- aNotificationobject.- Returns:
- a boolean.
-
getNextUserNotifIdSql
public String getNextUserNotifIdSql() throws IOException
getNextUserNotifIdSql
- Returns:
- a
Stringobject. - Throws:
IOException- if any.
-
getAutoAcknowledges
public Collection<AutoAcknowledge> getAutoAcknowledges() throws IOException
getAutoAcknowledges
- Returns:
- a
Collectionobject. - Throws:
IOException- if any.
-
getOutageCalendarNames
public Collection<String> getOutageCalendarNames() throws IOException
getOutageCalendarNames
- Returns:
- a
Collectionobject. - Throws:
IOException- if any.
-
-