|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.jmeter.gui.AbstractJMeterGuiComponent
org.apache.jmeter.samplers.gui.AbstractSamplerGui
org.apache.jmeter.protocol.http.control.gui.AccessLogSamplerGui
Title: JMeter Access Log utilities
Copyright: Apache.org
Company: nobody
License:
Look at the apache license at the top.
Description:
So what is this log Sampler GUI? It is a sampler that
can take Tomcat access logs and use them directly. I
wrote a tomcat access log parser to convert each line
to a normal HttpSampler. This way, you can stress
test your servers using real production traffic. This
is useful for a couple of reasons. Some bugs are
really hard to track down, which only appear under
production traffic. Therefore it is desirable to use
the actual queries to simulate the same exact condition
to facilitate diagnosis.
If you're working on a project to replace an existing
site, it is a good way to simulate the same exact
use pattern and compare the results. The goal here is
to get as close to apples to apples comparison as
possible. Running a select subset of queries against
a webserver normally catches a lot, but it won't give
an accurate picture of how a system will perform
under real requests.
Created on: Jun 26, 2003
Nested Class Summary | |
static class |
AccessLogSamplerGui.Test
Added basic TestCase for AccessLogSamplerGui. |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
String |
DEFAULT_GENERATOR
|
String |
DEFAULT_PARSER
|
protected int |
PORTNUMBER
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AccessLogSamplerGui()
|
Method Summary | |
void |
configure(TestElement el)
the implementation loads the URL and the soap action for the request. |
TestElement |
createTestElement()
JMeter test components are separated into a model and a GUI representation. |
String |
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. |
int |
getPortNumber()
Utility method to parse the string and get a int port number. |
void |
handleGeneratorEvent()
handleGeneratorEvent is used to check the generator class. |
void |
handleParserEvent()
handleParserEvent is used to check the parser class. |
void |
modifyTestElement(TestElement s)
Modifies a given TestElement to mirror the data in the gui components. |
void |
stateChanged(ChangeEvent event)
stateChanged implements logic for the text field and file chooser. |
Methods inherited from class org.apache.jmeter.samplers.gui.AbstractSamplerGui |
createPopupMenu, getMenuCategories |
Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent |
clear, configureTestElement, createTitleLabel, getDocAnchor, getName, getNamePanel, getNode, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setEnabled, setName, setNode |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int PORTNUMBER
public String DEFAULT_GENERATOR
public String DEFAULT_PARSER
Constructor Detail |
public AccessLogSamplerGui()
Method Detail |
public String getLabelResource()
JMeterGUIComponent
getLabelResource
in interface JMeterGUIComponent
getLabelResource
in class AbstractJMeterGuiComponent
JMeterGUIComponent.getStaticLabel()
public TestElement createTestElement()
JMeterGUIComponent
createTestElement
in interface JMeterGUIComponent
JMeterGUIComponent.createTestElement()
public int getPortNumber()
public void modifyTestElement(TestElement s)
modifyTestElement
in interface JMeterGUIComponent
s
- the TestElement to modifyJMeterGUIComponent.modifyTestElement(TestElement)
public void configure(TestElement el)
configure
in interface JMeterGUIComponent
configure
in class AbstractJMeterGuiComponent
el
- the TestElement to configurepublic void stateChanged(ChangeEvent event)
stateChanged
in interface ChangeListener
public void handleParserEvent()
public void handleGeneratorEvent()
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |