Class LogAnalyzer

java.lang.Object
de.uplanet.lucy.server.auxiliaries.LogAnalyzer

@VelocityCallable("singleton") public final class LogAnalyzer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Comparator<de.uplanet.lucy.server.monitor.log.userreport.AppVisit>
    createAppVisitComparator(int p_iComparatorID, de.uplanet.lucy.server.monitor.log.userreport.UserReport p_report, String p_strLangID)
    Creates a comparator for AppVisits.
    de.uplanet.lucy.server.monitor.log.ILogFilter
    createFilter(String p_strFilterClass)
    Create a statistics report filter.
    Comparator<de.uplanet.lucy.server.monitor.log.userreport.PageVisit>
    createPageVisitComparator(int p_iComparatorID, de.uplanet.lucy.server.monitor.log.userreport.UserReport p_report, String p_strLangID)
    Creates a comparator for PageVisits.
    de.uplanet.lucy.server.monitor.log.IOrder<?>
    createSortOrder(String p_strOrderClass)
    Create a statistics report sort order.
    de.uplanet.lucy.server.monitor.log.ApplicationReport
    getApplicationReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strAppGuid, String p_strDateFrom, String p_strDateTo)
     
    de.uplanet.lucy.server.monitor.log.GlobalReport
    getReport(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLangId, String p_strDateFrom, String p_strDateTo)
    Get a global statistics log report.
    de.uplanet.lucy.server.monitor.log.userreport.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)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LogAnalyzer

      public LogAnalyzer()
      Default constructor.
  • Method Details

    • getReport

      public de.uplanet.lucy.server.monitor.log.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 de.uplanet.lucy.server.monitor.log.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 de.uplanet.lucy.server.monitor.log.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 de.uplanet.lucy.server.monitor.log.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 de.uplanet.lucy.server.monitor.log.userreport.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<de.uplanet.lucy.server.monitor.log.userreport.AppVisit> createAppVisitComparator(int p_iComparatorID, de.uplanet.lucy.server.monitor.log.userreport.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<de.uplanet.lucy.server.monitor.log.userreport.PageVisit> createPageVisitComparator(int p_iComparatorID, de.uplanet.lucy.server.monitor.log.userreport.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.