| org.apache.jmeter.protocol.http.util.accesslog.Filter
All known Subclasses: org.apache.jmeter.protocol.http.util.accesslog.LogFilter, org.apache.jmeter.protocol.http.util.accesslog.SessionFilter,
Filter | public interface Filter (Code) | | Description:
Filter interface is designed to make it easier to use Access Logs for JMeter
test plans. Normally, a person would have to clean a log file manually and
create the JMeter requests. The access log parse utility uses the filter to
include/exclude files by either file name or regular expression pattern.
It will also be used by HttpSamplers that use access logs. Using access logs
is intended as a way to simulate production traffic. For functional testing,
it is better to use the standard functional testing tools in JMeter. Using
access logs can also reduce the amount of memory needed to run large test
plans.
author: Peter Lin
version: $Revision: 493789 $ last updated $Date: 2007-01-07 18:10:21 +0000 (Sun, 07 Jan 2007) $ Created version: on: Jun 26, 2003
|
Method Summary | |
public void | excludeFiles(String[] filenames) | public void | excludePattern(String[] regexp) Exclude any log entry that contains the following regular expression
pattern. | public String | filter(String text) In case the user wants to replace the file extension, log parsers should
call this method. | public void | includeFiles(String[] filenames) Include all files in the array. | public void | includePattern(String[] regexp) Include any log entry that contains the following regular expression
pattern. | public boolean | isFiltered(String path, TestElement sampler) Log parser will call this method to see if a particular entry should be
filtered or not. | public void | reset() Tell the filter when the parsing has reached the end of the log file and
is about to begin again. | public void | setReplaceExtension(String oldextension, String newextension) |
excludeFiles | public void excludeFiles(String[] filenames)(Code) | | Exclude all files in the array
Parameters: filenames - |
excludePattern | public void excludePattern(String[] regexp)(Code) | | Exclude any log entry that contains the following regular expression
pattern.
Parameters: regexp - |
filter | public String filter(String text)(Code) | | In case the user wants to replace the file extension, log parsers should
call this method. This is useful for regression test plans. If a website
is migrating from one platform to another and the file extension changes,
the filter provides an easy way to do it without spending a lot of time.
Parameters: text - String |
includeFiles | public void includeFiles(String[] filenames)(Code) | | Include all files in the array.
Parameters: filenames - |
includePattern | public void includePattern(String[] regexp)(Code) | | Include any log entry that contains the following regular expression
pattern.
Parameters: regexp - |
isFiltered | public boolean isFiltered(String path, TestElement sampler)(Code) | | Log parser will call this method to see if a particular entry should be
filtered or not.
Parameters: path - boolean |
reset | public void reset()(Code) | | Tell the filter when the parsing has reached the end of the log file and
is about to begin again. Gives the filter a chance to adjust it's values,
if needed.
|
setReplaceExtension | public void setReplaceExtension(String oldextension, String newextension)(Code) | | Parameters: oldextension - Parameters: newextension - |
|
|