Class AccessLogLoader


  • public class AccessLogLoader
    extends java.lang.Object
    AccessLogLoader reads a CQSE access.log.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  AccessLogLoader.ProgressListener
      Simple interface to get notifications about the progress of reading the access.log file.
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessLogLoader​(java.lang.String ql, java.lang.String rl, java.lang.String qpp, java.lang.String qpn, java.lang.String rpp)
      Creates a new AccessLogLoader.
    • Constructor Detail

      • AccessLogLoader

        public AccessLogLoader​(java.lang.String ql,
                               java.lang.String rl,
                               java.lang.String qpp,
                               java.lang.String qpn,
                               java.lang.String rpp)
        Creates a new AccessLogLoader.
        Parameters:
        ql - the query location.
        rl - the result location.
        qpp - the query path prefix.
        qpn - the query parameter name.
        rpp - the result path prefix.
    • Method Detail

      • processFile

        public int[] processFile​(java.io.InputStream in)
                          throws java.io.IOException
        Processes an access.log and notifies an attached listeners about entries read.
        Parameters:
        in - the input stream where to read from the access.log.
        Returns:
        an integer array of length 2, where the first value indicates the number of queries and the second the number of results loaded.
        Throws:
        java.io.IOException - if an error occurs while reading from the access.log.
      • setProgressListener

        public void setProgressListener​(AccessLogLoader.ProgressListener listener)
        Sets a progress listener.
        Parameters:
        listener - the progress listener.