org.objectweb.jasmine.rules.logs.beans
Interface LogInterfaceLocal


public interface LogInterfaceLocal

This interface defines method that can be used locally to retrieve alarms.

Author:
Laurent RUAUD

Method Summary
 List<AlarmLog> getLastLogs(int nb)
          Retrieves the last alarms.
The maximum number of alarms to retrieve must be specified.
 AlarmLog getLog(int id)
          Retrieves the alarm with the specified id.
 List<AlarmLog> getLogRange(int lowid, int highid)
          Retrieves the alarms with an id contained in the specified range of id inclusive.
 

Method Detail

getLog

AlarmLog getLog(int id)
Retrieves the alarm with the specified id.

Parameters:
id - id of the alarm to be retrieved.
Returns:
the alarm with the specified id or null if no alarms match the id.

getLastLogs

List<AlarmLog> getLastLogs(int nb)
Retrieves the last alarms.
The maximum number of alarms to retrieve must be specified.

Parameters:
nb - the maximum number of alarm to retrieve.
Returns:
a list of alarms or an empty list if no alarms have been raised.

getLogRange

List<AlarmLog> getLogRange(int lowid,
                           int highid)
Retrieves the alarms with an id contained in the specified range of id inclusive.

Parameters:
lowid - the low threshold.
highid - the high threshold.
Returns:
a list of alarms or an empty list if no alarms match.


Copyright © 2012 OW2 Consortium. All Rights Reserved.