org.backsource.alert
Interface Sender

All Known Implementing Classes:
SenderBase

public interface Sender

Interface of a sender.

A sender is a class that delivers the reported errors and warnings to a destinations of some sort, such as Mail, SMS, Pager, Jabber, syslog, instant news or JMS. The preexisting senders is found in org.backsource.alert.sender.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Method Summary
 void sendErrors(java.util.List errors, java.util.List warnings)
          Send the errors and warnings given.
 void sendWarnings(java.util.List warnings)
          Send the warnings given.
 void setProperties(java.util.Properties prop)
          Set the properties of the sender.
 

Method Detail

sendErrors

public void sendErrors(java.util.List errors,
                       java.util.List warnings)
Send the errors and warnings given.


sendWarnings

public void sendWarnings(java.util.List warnings)
Send the warnings given.

It is up to the sender to decide, based on configuration or statically if it should really send warnings.


setProperties

public void setProperties(java.util.Properties prop)
                   throws java.lang.Exception
Set the properties of the sender.

Throws:
java.lang.Exception


Copyright © 2002-2004 Backsource. All Rights Reserved.