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 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 CommandgetCommand(String name)Gets a notification command for a particular command name.Map<String,Command>getCommands()Gets all configured notification commands.protected voidparseXML(InputStream stream)Populate the internal list of notification commands from an XML file.abstract voidupdate()update
-
-
-
Method Detail
-
parseXML
protected void parseXML(InputStream stream) throws IOException
Populate the internal list of notification commands from an XML file.- Parameters:
reader- contains the XML file to be parsed- Throws:
IOException
-
getCommand
public Command getCommand(String name)
Gets a notification command for a particular command name.
-
-