Class GlobalReport
- java.lang.Object
-
- de.uplanet.lucy.server.monitor.log.GlobalReport
-
- All Implemented Interfaces:
de.uplanet.lucy.server.monitor.log.ILogReport
public class GlobalReport extends Object implements de.uplanet.lucy.server.monitor.log.ILogReport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
GlobalReport.GlobalReportEntry
A single report entry.static class
GlobalReport.OrderByHitsAsc
Ascending order by hits.static class
GlobalReport.OrderByHitsDesc
Descending order by hits.
-
Constructor Summary
Constructors Constructor Description GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLang, long p_lLBound, long p_lUBound)
Contructor.GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, Date p_dtFrom, Date p_dtTo)
Contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.uplanet.lucy.server.monitor.log.ILogEntryConsumer
asLogEntryConsumer()
void
prepareResults(ILogFilter p_filter, IOrder<? super GlobalReport.GlobalReportEntry> p_order)
Prepare the results collection.Iterator<GlobalReport.GlobalReportEntry>
resultsIterator()
Get an iterator over the report entries.int
size()
Get the number of report entries.
-
-
-
Constructor Detail
-
GlobalReport
public GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, Date p_dtFrom, Date p_dtTo)
Contructor.- Parameters:
p_conn
- The database connection to be used.p_strLangId
- The language identifier.p_dtFrom
- The start date of the report.p_dtTo
- The end date of the report.
-
GlobalReport
public GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLang, long p_lLBound, long p_lUBound)
Contructor.- Parameters:
p_conn
- The database connection to be used.p_strLang
- The language identifier.p_lLBound
- The start date of the report.p_lUBound
- The end date of the report.
-
-
Method Detail
-
asLogEntryConsumer
public de.uplanet.lucy.server.monitor.log.ILogEntryConsumer asLogEntryConsumer()
- Returns:
- The object's
ILogEntryConsumer
interface.
-
prepareResults
public void prepareResults(ILogFilter p_filter, IOrder<? super GlobalReport.GlobalReportEntry> p_order)
Prepare the results collection.- Parameters:
p_filter
- A filter to apply, ornull
.p_order
- The sort order (must not benull
).
-
size
public int size()
Get the number of report entries.- Returns:
- The number of report entries.
-
resultsIterator
public Iterator<GlobalReport.GlobalReportEntry> resultsIterator()
Get an iterator over the report entries.- Returns:
- The iterator.
-
-