public interface LogParser
The original log parser was written in 2 hours to parse access logs. Since then, the design and implementation has been rewritten from scratch several times to make it more generic and extensible. The first version was hard coded and written over the weekend.
Modifier and Type | Method and Description |
---|---|
void |
close()
close the any streams or readers.
|
int |
parseAndConfigure(int count,
TestElement el)
the method will parse the given number of lines.
|
void |
setFilter(Filter filter)
We allow for filters, so that users can simply point to an Access log
without having to clean it up.
|
void |
setSourceFile(java.lang.String source)
The method is provided to make it easy to dynamically create new classes
using Class.newInstance().
|
void close()
int parseAndConfigure(int count, TestElement el)
count
- max lines to parse, or -1
for the entire fileel
- TestElement
to read lines intovoid setFilter(Filter filter)
filter
- Filter
to usevoid setSourceFile(java.lang.String source)
source
- name of the access log fileCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.