Package org.opennms.netmgt.config
Class NotificationCommandManager
- java.lang.Object
-
- org.opennms.netmgt.config.NotificationCommandManager
-
- Direct Known Subclasses:
MockNotificationCommandManager
,NotificationCommandFactory
public abstract class NotificationCommandManager extends java.lang.Object
Abstract NotificationCommandManager class.
- Version:
- $Id: $
- Author:
- David Hustace
-
-
Constructor Summary
Constructors Constructor Description NotificationCommandManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Command
getCommand(java.lang.String name)
Gets a notification command for a particular command name.java.util.Map<java.lang.String,Command>
getCommands()
Gets all configured notification commands.protected void
parseXML(java.io.InputStream stream)
Populate the internal list of notification commands from an XML file.abstract void
update()
update
-
-
-
Method Detail
-
parseXML
protected void parseXML(java.io.InputStream stream) throws java.io.IOException
Populate the internal list of notification commands from an XML file.- Parameters:
reader
- contains the XML file to be parsed- Throws:
java.io.IOException
-
update
public abstract void update() throws java.lang.Exception
update
- Throws:
java.lang.Exception
- if any.
-
getCommand
public Command getCommand(java.lang.String name)
Gets a notification command for a particular command name.- Parameters:
name
- aString
object.- Returns:
- a
Command
object.
-
getCommands
public java.util.Map<java.lang.String,Command> getCommands()
Gets all configured notification commands.- Returns:
- a
Map
object.
-
-