|
Apache JMeter | |||||||||
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.jms.sampler.BaseJMSSampler
BaseJMSSampler is an abstract class which provides implementation for common properties. Rather than duplicate the code, it's contained in the base class.
Field Summary | |
static String |
not_req
|
static String |
required
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
BaseJMSSampler()
|
Method Summary | |
String |
getConnectionFactory()
return the connection factory parameter used to lookup the connection factory from the JMS server |
int |
getIterationCount()
return the number of iterations as int instead of string |
String |
getIterations()
get the iterations as string |
String |
getJNDIInitialContextFactory()
method returns the initial context factory for jndi initial context lookup. |
String |
getPassword()
return the password used to login to the jms server |
String |
getProviderUrl()
method returns the provider url for jndi to connect to |
String |
getReadResponse()
return whether the sampler should read the response |
boolean |
getReadResponseAsBoolean()
return whether the sampler should read the response as a boolean value |
String |
getTopic()
return the topic used for the benchmark |
String |
getUseAuth()
return whether jndi requires authentication |
String |
getUseJNDIProperties()
return whether the sampler should use properties file instead of UI parameters. |
boolean |
getUseJNDIPropertiesAsBoolean()
return the properties as boolean true/false. |
String |
getUsername()
return the username used to login to the jms server |
abstract SampleResult |
sample()
|
SampleResult |
sample(Entry e)
Obtains statistics about the given Entry, and packages the information into a SampleResult. |
void |
setConnectionFactory(String factory)
set the connection factory for |
void |
setIterations(String count)
set the number of iterations the sampler should aggregate |
void |
setJNDIIntialContextFactory(String icf)
set the initial context factory |
void |
setPassword(String pwd)
Set the password to login to the jms server |
void |
setProviderUrl(String url)
set the provider user for jndi |
void |
setReadResponse(String read)
set whether the sampler should read the response or not |
void |
setTopic(String topic)
set the topic |
void |
setUseAuth(String auth)
Set whether authentication is required for JNDI |
void |
setUseJNDIProperties(String properties)
if the sampler should use jndi.properties file, call the method with true |
void |
setUsername(String user)
set the username to login into the jms server if needed |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestListener |
testEnded, testEnded, testIterationStart, testStarted, testStarted |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
addTestElement, canRemove, clear, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
Field Detail |
public static final String required
public static final String not_req
Constructor Detail |
public BaseJMSSampler()
Method Detail |
public SampleResult sample(Entry e)
Sampler
sample
in interface Sampler
public abstract SampleResult sample()
public void setJNDIIntialContextFactory(String icf)
icf
- public String getJNDIInitialContextFactory()
public void setProviderUrl(String url)
url
- the provider URLpublic String getProviderUrl()
public void setConnectionFactory(String factory)
factory
- public String getConnectionFactory()
public void setTopic(String topic)
topic
- public String getTopic()
public void setUsername(String user)
user
- public String getUsername()
public void setPassword(String pwd)
pwd
- public String getPassword()
public void setIterations(String count)
count
- public String getIterations()
public int getIterationCount()
public void setUseAuth(String auth)
auth
- public String getUseAuth()
public void setReadResponse(String read)
read
- whether the sampler should read the response or notpublic String getReadResponse()
public boolean getReadResponseAsBoolean()
public void setUseJNDIProperties(String properties)
properties
- public String getUseJNDIProperties()
public boolean getUseJNDIPropertiesAsBoolean()
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |