|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Description:
LogParser is the base interface for classes
implementing concrete parse logic. For an
example of how to use the interface, look
at the Tomcat access log parser.
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.
Method Summary | |
void |
close()
close the any streams or readers. |
int |
parse(int count)
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 |
setGenerator(Generator generator)
Concrete parsers need to have a generator to recieve the parsed result. |
void |
setSourceFile(String source)
The method is provided to make it easy to dynamically create new classes using Class.newInstance(). |
Method Detail |
public void close()
public void setGenerator(Generator generator)
generator
- public int parse(int count)
count
-
public void setFilter(Filter filter)
filter
- public void setSourceFile(String source)
source
-
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |