Class LogAnalyzer
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.LogAnalyzer
-
@VelocityCallable("singleton") public final class LogAnalyzer extends Object
-
-
Constructor Summary
Constructors Constructor Description LogAnalyzer()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<AppVisit>
createAppVisitComparator(int p_iComparatorID, UserReport p_report, String p_strLangID)
Creates a comparator for AppVisits.ILogFilter
createFilter(String p_strFilterClass)
Create a statistics report filter.Comparator<PageVisit>
createPageVisitComparator(int p_iComparatorID, UserReport p_report, String p_strLangID)
Creates a comparator for PageVisits.IOrder<?>
createSortOrder(String p_strOrderClass)
Create a statistics report sort order.ApplicationReport
getApplicationReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strAppGuid, String p_strDateFrom, String p_strDateTo)
GlobalReport
getReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strDateFrom, String p_strDateTo)
Get a global statistics log report.UserReport
getUserReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strDateFrom, String p_strDateTo, long p_lTimeOut, long p_lInactivity, Collection<String> p_userGuids)
-
-
-
Method Detail
-
getReport
public GlobalReport getReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strDateFrom, String p_strDateTo) throws Exception
Get a global statistics log report.- Parameters:
p_conn
- The database connection to be used.p_strLangId
- The language identifier.p_strDateFrom
- The report's start date.p_strDateTo
- The report's end date.- Returns:
- The global report.
- Throws:
Exception
- - If an error occurred.
-
getApplicationReport
public ApplicationReport getApplicationReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strAppGuid, String p_strDateFrom, String p_strDateTo) throws Exception
- Throws:
Exception
-
createFilter
public ILogFilter createFilter(String p_strFilterClass) throws Exception
Create a statistics report filter.- Parameters:
p_strFilterClass
- The name of the filter class.- Returns:
- The requested filter, or
null
if an error occurred. - Throws:
Exception
- - If the filter could not be created
-
createSortOrder
public IOrder<?> createSortOrder(String p_strOrderClass) throws Exception
Create a statistics report sort order.- Parameters:
p_strOrderClass
- The name of the sort order class.- Returns:
- The requested sort order, or
null
if an error occurred. - Throws:
Exception
- - If the sort order not be created
-
getUserReport
public UserReport getUserReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strDateFrom, String p_strDateTo, long p_lTimeOut, long p_lInactivity, Collection<String> p_userGuids) throws Exception
- Throws:
Exception
-
createAppVisitComparator
public Comparator<AppVisit> createAppVisitComparator(int p_iComparatorID, UserReport p_report, String p_strLangID)
Creates a comparator for AppVisits.- Parameters:
p_iComparatorID
-
ID of the comparator:
- 1 - AppNameComparator
- else - NoneAppVisitComparator
p_report
- The currently used UserReport.- Returns:
- The requested comparator.
-
createPageVisitComparator
public Comparator<PageVisit> createPageVisitComparator(int p_iComparatorID, UserReport p_report, String p_strLangID)
Creates a comparator for PageVisits.- Parameters:
p_iComparatorID
-
ID of the comparator:
- 1 - PageNameComparator
- else - NonePageVisitComparator
p_report
- The currently used UserReport.p_strLangID
- The ID of the current language.- Returns:
- The requested comparator.
-
-