org.opennms.netmgt.config
Class NotificationCommandManager

java.lang.Object
  extended by org.opennms.netmgt.config.NotificationCommandManager
Direct Known Subclasses:
NotificationCommandFactory

public abstract class NotificationCommandManager
extends Object

Author:
david hustace

Field Summary
protected  InputStream configIn
           
 
Constructor Summary
NotificationCommandManager()
           
 
Method Summary
 Command getCommand(String name)
          Gets a notification command for a particular command name.
 Map<String,Command> getCommands()
          Gets all configured notification commands.
protected  void parseXML(Reader reader)
          Populate the internal list of notification commands from an XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configIn

protected InputStream configIn
Constructor Detail

NotificationCommandManager

public NotificationCommandManager()
Method Detail

parseXML

protected void parseXML(Reader reader)
                 throws org.exolab.castor.xml.MarshalException,
                        org.exolab.castor.xml.ValidationException
Populate the internal list of notification commands from an XML file.

Parameters:
reader - contains the XML file to be parsed
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

getCommand

public Command getCommand(String name)
Gets a notification command for a particular command name.


getCommands

public Map<String,Command> getCommands()
Gets all configured notification commands.



Copyright © 2009. All Rights Reserved.