public interface ReportService
Modifier and Type | Method and Description |
---|---|
<M extends Message,R extends Report<M>> |
addReport(R report)
Adds a report
|
void |
addReportListener(ReportListener<?,?> listener)
Adds a report listener
|
void |
deleteAllReports()
Deletes all reports.
|
Collection<ReportSession> |
getAllSessions()
Get all saved sessions.
|
com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> |
getCurrentReports()
Get all current reports.
|
long |
getCurrentSessionDescription()
Get the current session description.
|
com.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> |
getReports(Class<? extends Message> messageType)
Get all reports matching the given message type
|
void |
loadReport(File file)
Load a specific report log file.
|
void |
loadReportsOnStartup()
Try to reload previous saved reports and their session at program
startup.
|
void |
removeReportListener(ReportListener<?,?> listener)
Removes a report listener
|
boolean |
saveCurrentReports(File file)
Saves all reports from
ReportService to a specific file. |
void |
saveReportsOnShutdown()
Saves all reports with there corresponding session on program shutdown.
|
void |
updateCurrentSessionDescription()
Update the session description.
|
<M extends Message,R extends Report<M>> void addReport(R report)
M
- the message typeR
- the report typereport
- the report to addvoid addReportListener(ReportListener<?,?> listener)
listener
- the report listener to addvoid removeReportListener(ReportListener<?,?> listener)
listener
- the report listener to removecom.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getReports(Class<? extends Message> messageType)
messageType
- the message typecom.google.common.collect.Multimap<Class<? extends Report<?>>,Report<?>> getCurrentReports()
void deleteAllReports()
boolean saveCurrentReports(File file) throws IOException
ReportService
to a specific file.file
- the file to saveIOException
- an exception if IO failsCollection<ReportSession> getAllSessions()
void loadReportsOnStartup()
void saveReportsOnShutdown()
void loadReport(File file) throws org.eclipse.jface.bindings.keys.ParseException
file
- report log fileorg.eclipse.jface.bindings.keys.ParseException
- if a parse error
occurredlong getCurrentSessionDescription()
void updateCurrentSessionDescription()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a