de.uplanet.lucy.server.monitor.log
Class GlobalReport

java.lang.Object
  extended by de.uplanet.lucy.server.monitor.log.GlobalReport
All Implemented Interfaces:
de.uplanet.lucy.server.monitor.log.ILogReport

public class GlobalReport
extends java.lang.Object
implements de.uplanet.lucy.server.monitor.log.ILogReport

Version:
$Revision: 61894 $

Nested Class Summary
 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
GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strLangId, java.util.Date p_dtFrom, java.util.Date p_dtTo)
          Contructor.
GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strLang, long p_lLBound, long p_lUBound)
          Contructor.
 
Method Summary
 de.uplanet.lucy.server.monitor.log.ILogEntryConsumer asLogEntryConsumer()
           
 void prepareResults(ILogFilter p_filter, IOrder<? super GlobalReport.GlobalReportEntry> p_order)
          Prepare the results collection.
 java.util.Iterator<GlobalReport.GlobalReportEntry> resultsIterator()
          Get an iterator over the report entries.
 int size()
          Get the number of report entries.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalReport

public GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn,
                    java.lang.String p_strLangId,
                    java.util.Date p_dtFrom,
                    java.util.Date p_dtTo)
             throws java.sql.SQLException
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.
Throws:
java.sql.SQLException - If an error occurred.

GlobalReport

public GlobalReport(de.uplanet.jdbc.JdbcConnection p_conn,
                    java.lang.String p_strLang,
                    long p_lLBound,
                    long p_lUBound)
             throws java.sql.SQLException
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.
Throws:
java.sql.SQLException - If an error occurred.
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, or null.
p_order - The sort order (must not be null).

size

public int size()
Get the number of report entries.

Returns:
The number of report entries.

resultsIterator

public java.util.Iterator<GlobalReport.GlobalReportEntry> resultsIterator()
Get an iterator over the report entries.

Returns:
The iterator.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.