|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
org.apache.jmeter.protocol.http.sampler.HTTPSampler
org.apache.jmeter.protocol.http.sampler.AccessLogSampler
Description:
AccessLogSampler is responsible for a couple of things:
Some bugs only appear under production traffic, so it is useful to generate traffic using production logs. This way, JMeter can record when problems occur and provide a way to match the server logs.
Created on: Jun 26, 2003
Nested Class Summary |
Nested classes inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSampler |
HTTPSampler.Test |
Field Summary | |
static String |
DEFAULT_CLASS
|
static String |
GENERATOR_CLASS_NAME
|
static String |
LOG_FILE
|
static String |
PARSER_CLASS_NAME
|
Fields inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase |
ARGUMENTS, AUTH_MANAGER, AUTO_REDIRECTS, CONTENT_TYPE, COOKIE_MANAGER, DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT, DEFAULT_PROTOCOL, DOMAIN, FILE_DATA, FILE_FIELD, FILE_MIMETYPE, FILE_NAME, FOLLOW_REDIRECTS, GET, HEADER_MANAGER, IMAGE_PARSER, MAX_FRAME_DEPTH, MAX_REDIRECTS, METHOD, MIMETYPE, MONITOR, MULTIPART_FORM, NON_HTTP_RESPONSE_CODE, NON_HTTP_RESPONSE_MESSAGE, NORMAL_FORM, PATH, PORT, POST, PROTOCOL, UNSPECIFIED_PORT, URL, USE_KEEPALIVE |
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
AccessLogSampler()
|
Method Summary | |
void |
addEncodedArgument(String name,
String value,
String metaData)
We override this to prevent the wrong encoding and provide no implementation. |
boolean |
checkGenerator()
Method will instantiate the generator. |
boolean |
checkParser()
Method will instantiate the log parser based on the class in the text field. |
protected long |
connect()
We override this to prevent the wrong encoding and provide no implementation. |
Generator |
getGenerator()
Return the generator |
String |
getGeneratorClassName()
Return the name of the generator class to use. |
String |
getLogFile()
Get the path where XML messages are stored. this is the directory where JMeter will randomly select a file. |
LogParser |
getParser()
Return the parser |
String |
getParserClassName()
Get the file location of the xml file. |
void |
instantiateGenerator()
Method will instantiate the generator. |
void |
instantiateParser()
Method will instantiate the log parser based on the class in the text field. |
SampleResult |
sample(Entry e)
sample(Entry e) simply calls sample(). |
SampleResult |
sampleWithGenerator()
sample gets a new HTTPSampler from the generator and calls it's sample() method. |
void |
setGenerator(Generator gen)
Set the generator for the Sampler to use |
void |
setGeneratorClassName(String classname)
We give the user the choice of entering their own generator instead of the default generator. |
void |
setLogFile(String path)
Set the path where XML messages are stored for random selection. |
void |
setParser(LogParser parser)
Set the parser for the sampler to use |
void |
setParserClassName(String classname)
it's kinda obvious, but we state it anyways. |
protected HttpURLConnection |
setupConnection(URL u,
String method)
We override this to prevent the wrong encoding and provide no implementation. |
Methods inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSampler |
disconnect, getResponseHeaders, modifyHeaderValues, readResponse, sample, sendPostData, setPostHeaders, setupConnection |
Methods inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase |
addArgument, addArgument, addTestElement, clone, downloadPageResources, encodeSpaces, errorResult, getArguments, getAuthManager, getCookieManager, getDomain, getFileField, getFilename, getFollowRedirects, getHeaderManager, getMethod, getMimetype, getMonitor, getPath, getPort, getProtocol, getQueryString, getUrl, getUseKeepAlive, isImageParser, isMonitor, parseArguments, sample, setArguments, setAuthManager, setCookieManager, setDomain, setFileField, setFilename, setFollowRedirects, setHeaderManager, setImageParser, setMethod, setMimetype, setMonitor, setPath, setPort, setProtocol, setUseKeepAlive, testEnded, testEnded, testIterationStart, testStarted, testStarted, toString |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, canRemove, clear, clearTemporary, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
canRemove, clear, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse |
Field Detail |
public static final String DEFAULT_CLASS
public static final String LOG_FILE
public static final String PARSER_CLASS_NAME
public static final String GENERATOR_CLASS_NAME
Constructor Detail |
public AccessLogSampler()
Method Detail |
public void setLogFile(String path)
public String getLogFile()
public void setParserClassName(String classname)
classname
- - parser class namepublic String getParserClassName()
public void setGeneratorClassName(String classname)
classname
- public String getGeneratorClassName()
public void setGenerator(Generator gen)
gen
- public Generator getGenerator()
public void setParser(LogParser parser)
parser
- public LogParser getParser()
public SampleResult sampleWithGenerator()
public SampleResult sample(Entry e)
sample
in interface Sampler
sample
in class HTTPSamplerBase
e
- - ignored
public void instantiateGenerator()
public boolean checkGenerator()
public void instantiateParser()
public boolean checkParser()
public void addEncodedArgument(String name, String value, String metaData)
addEncodedArgument
in class HTTPSamplerBase
protected HttpURLConnection setupConnection(URL u, String method) throws IOException
IOException
protected long connect() throws IOException
IOException
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |