Class SharedTCLogParser
java.lang.Object
org.apache.jmeter.protocol.http.util.accesslog.TCLogParser
org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser
- All Implemented Interfaces:
Cloneable
,LogParser
,TestCloneable
- Direct Known Subclasses:
OrderPreservingLogParser
@AutoService(LogParser.class)
public class SharedTCLogParser
extends TCLogParser
implements TestCloneable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
void
close()
close the any streams or readers.protected int
parse
(FileServer breader, org.apache.jmeter.testelement.TestElement el, int parseCount) The method is responsible for reading each line, and breaking out of the while loop if a set number of lines is given.int
parse
(org.apache.jmeter.testelement.TestElement el, int parseCount) parse the entire file.Methods inherited from class org.apache.jmeter.protocol.http.util.accesslog.TCLogParser
checkMethod, checkParamFormat, checkURL, cleanURL, convertStringToJMRequest, convertStringtoNVPair, decodeParameterValue, parse, parseAndConfigure, parseLine, parseOneParameter, parseParameters, setDecodeParameterValues, setFilter, setSourceFile, setUseParsedFile, stripFile, tokenize
-
Constructor Details
-
SharedTCLogParser
public SharedTCLogParser() -
SharedTCLogParser
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceTestCloneable
- Overrides:
clone
in classObject
-
parse
public int parse(org.apache.jmeter.testelement.TestElement el, int parseCount) parse the entire file.- Overrides:
parse
in classTCLogParser
- Parameters:
el
- TestElement to read the lines intoparseCount
- number of max lines to read- Returns:
- number of read lines, or
-1
if an error occurred while reading
-
parse
protected int parse(FileServer breader, org.apache.jmeter.testelement.TestElement el, int parseCount) The method is responsible for reading each line, and breaking out of the while loop if a set number of lines is given.- Parameters:
breader
- reader to read lines fromel
-TestElement
in which to add the parsed linesparseCount
- max number of lines to parse- Returns:
- number of read lines
-
close
public void close()close the any streams or readers.- Specified by:
close
in interfaceLogParser
- Overrides:
close
in classTCLogParser
-