Java Doc for Filter.java in  » Testing » jakarta-jmeter » org » apache » jmeter » protocol » http » util » accesslog » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta jmeter » org.apache.jmeter.protocol.http.util.accesslog 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  voidexcludeFiles(String[] filenames)
    
public  voidexcludePattern(String[] regexp)
     Exclude any log entry that contains the following regular expression pattern.
public  Stringfilter(String text)
     In case the user wants to replace the file extension, log parsers should call this method.
public  voidincludeFiles(String[] filenames)
     Include all files in the array.
public  voidincludePattern(String[] regexp)
     Include any log entry that contains the following regular expression pattern.
public  booleanisFiltered(String path, TestElement sampler)
     Log parser will call this method to see if a particular entry should be filtered or not.
public  voidreset()
     Tell the filter when the parsing has reached the end of the log file and is about to begin again.
public  voidsetReplaceExtension(String oldextension, String newextension)
    



Method Detail
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 -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.