|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jasmine.rules.logs.impl.LogInterface
public class LogInterface
| Constructor Summary | |
|---|---|
LogInterface()
|
|
| Method Summary | |
|---|---|
int |
addLogEntity(Date date,
String level,
String message)
|
void |
delAllLogs()
Deletes all the alarms contained in the DB. |
void |
deleteMessageBeforeDate(Date date)
|
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. |
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. |
List<AlarmLog> |
getLogRange(String[] levels,
Date startDate,
Date endDate)
Retrieves the alarms matching the specified criteria. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogInterface()
| Method Detail |
|---|
public int addLogEntity(Date date,
String level,
String message)
throws DBException
addLogEntity in interface LogInterfaceRulesRemoteDBException
public void deleteMessageBeforeDate(Date date)
throws DBException
deleteMessageBeforeDate in interface LogInterfaceRulesRemoteDBExceptionpublic AlarmLog getLog(int id)
getLog in interface LogInterfaceLocalgetLog in interface LogInterfaceRemoteid - id of the alarm to be retrieved.
public List<AlarmLog> getAllLogs()
getAllLogs in interface LogInterfaceRemotepublic List<AlarmLog> getLastLogs(int nb)
getLastLogs in interface LogInterfaceLocalnb - the maximum number of alarm to retrieve.
public List<AlarmLog> getLogRange(int lowid,
int highid)
getLogRange in interface LogInterfaceLocallowid - the low threshold.highid - the high threshold.
public List<AlarmLog> getLogRange(String[] levels,
Date startDate,
Date endDate)
getLogRange in interface LogInterfaceRemotelevels - a list of levels.startDate - the lowest date.endDate - the highest date.
public void delLog(int id)
delLog in interface LogInterfaceRemoteid - id of the alarm to be deleted.public void delAllLogs()
delAllLogs in interface LogInterfaceRemote
public void delLogRange(String[] levels,
Date startDate,
Date endDate)
delLogRange in interface LogInterfaceRemotelevels - a list of levels.startDate - the lowest date.endDate - the highest date.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||