Venice 0.751beta

nz.org.venice.alert
Interface AlertReader

All Known Implementing Classes:
DatabaseAlertReader, FileAlertReader

public interface AlertReader

Provides a common interface to retrieve alerts. Allows AlertModule to display alerts regardless of where they are stored.

Author:
Mark Hummel
See Also:
Alert, AlertWriter, AlertModule

Method Summary
 java.util.List getAlerts()
          Get all alerts currently stored.
 java.util.List getAlertsBySymbol(Symbol symbol)
          Get all alerts currently stored for the symbol.
 java.util.List getAlertsBySymbolList(java.util.List symbols)
          Get all alerts currently stored for the given symbols.
 

Method Detail

getAlerts

public java.util.List getAlerts()
                         throws AlertException
Get all alerts currently stored.

Returns:
A list of all the alerts currently stored.
Throws:
AlertException

getAlertsBySymbol

public java.util.List getAlertsBySymbol(Symbol symbol)
                                 throws AlertException
Get all alerts currently stored for the symbol.

Parameters:
symbol - The symbol to filter the alerts on.
Returns:
A list of all the alerts for this symbol.
Throws:
AlertException

getAlertsBySymbolList

public java.util.List getAlertsBySymbolList(java.util.List symbols)
                                     throws AlertException
Get all alerts currently stored for the given symbols.

Parameters:
symbols - The symbols to filter the alerts on.
Returns:
A list of all the alerts for this symbol.
Throws:
AlertException

Venice 0.751beta