Package com.day.crx.statistics.loader
Class AccessLogLoader
java.lang.Object
com.day.crx.statistics.loader.AccessLogLoader
AccessLogLoader
reads a CQSE access.log.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Simple interface to get notifications about the progress of reading the access.log file. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint[]
Processes an access.log and notifies an attached listeners about entries read.void
Sets a progress listener.
-
Constructor Details
-
AccessLogLoader
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 Details
-
processFile
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:
IOException
- if an error occurs while reading from the access.log.
-
setProgressListener
Sets a progress listener.- Parameters:
listener
- the progress listener.
-