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.ObjectAbstract 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(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 voidparseXML(java.io.InputStream stream)Populate the internal list of notification commands from an XML file.abstract voidupdate()update
-
-
-
Method Detail
-
parseXML
protected void parseXML(java.io.InputStream stream) throws java.io.IOExceptionPopulate 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.Exceptionupdate
- 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- aStringobject.- Returns:
- a
Commandobject.
-
getCommands
public java.util.Map<java.lang.String,Command> getCommands()
Gets all configured notification commands.- Returns:
- a
Mapobject.
-
-