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

Abstract NotificationCommandManager class.

Version:
$Id: $
Author:
David Hustace

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(InputStream reader)
          Populate the internal list of notification commands from an XML file.
abstract  void update()
          update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationCommandManager

public NotificationCommandManager()
Method Detail

parseXML

protected void parseXML(InputStream 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 - if any.
org.exolab.castor.xml.ValidationException - if any.

update

public abstract void update()
                     throws Exception

update

Throws:
Exception - if any.

getCommand

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

Parameters:
name - a String object.
Returns:
a Command object.

getCommands

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

Returns:
a Map object.


Copyright © 2011. All Rights Reserved.