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


public interface LogInterfaceRemote

This interface defines method that can be used remotely to handle alarms.


Method Summary
 void delAllLogs()
          Deletes all the alarms contained in the DB.
 void delLog(int id)
          Deletes the alarm with the specified id.
 void delLogRange(String[] levels, Date startDate, Date endDate)
          Deletes the alarms matching the specified criteria.
 List<AlarmLog> getAllLogs()
          Retrieves all the alarms contained in the DB.
 AlarmLog getLog(int id)
          Retrieves the alarm with the specified id.
 List<AlarmLog> getLogRange(String[] levels, Date startDate, Date endDate)
          Retrieves the alarms matching the specified criteria.
 

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.

getAllLogs

List<AlarmLog> getAllLogs()
Retrieves all the alarms contained in the DB.

Returns:
a list of alarms or an empty list if no alarms have been raised.

getLogRange

List<AlarmLog> getLogRange(String[] levels,
                           Date startDate,
                           Date endDate)
Retrieves the alarms matching the specified criteria. All alarms which a level in the list and raised between provided dates will be returned.

Parameters:
levels - a list of levels.
startDate - the lowest date.
endDate - the highest date.
Returns:
a list of alarms or an empty list if no alarms match.

delLog

void delLog(int id)
Deletes the alarm with the specified id.

Parameters:
id - id of the alarm to be deleted.

delAllLogs

void delAllLogs()
Deletes all the alarms contained in the DB.


delLogRange

void delLogRange(String[] levels,
                 Date startDate,
                 Date endDate)
Deletes the alarms matching the specified criteria. All alarms which a level in the list and raised between provided dates will be deleted.

Parameters:
levels - a list of levels.
startDate - the lowest date.
endDate - the highest date.


Copyright © 2012 OW2 Consortium. All Rights Reserved.