BaseJMSSampler is an abstract class which provides implementation for common
properties. Rather than duplicate the code, it's contained in the base class.
getConnectionFactory
public String getConnectionFactory()
return the connection factory parameter used to lookup the connection
factory from the JMS server
getIterationCount
public int getIterationCount()
return the number of iterations as int instead of string
- the number of iterations as int instead of string
getIterations
public String getIterations()
get the iterations as string
getJNDIInitialContextFactory
public String getJNDIInitialContextFactory()
method returns the initial context factory for jndi initial context
lookup.
- the initial context factory
getPassword
public String getPassword()
return the password used to login to the jms server
- the password used to login to the jms server
getProviderUrl
public String getProviderUrl()
method returns the provider url for jndi to connect to
getReadResponse
public String getReadResponse()
return whether the sampler should read the response
- whether the sampler should read the response
getReadResponseAsBoolean
public boolean getReadResponseAsBoolean()
return whether the sampler should read the response as a boolean value
- whether the sampler should read the response as a boolean value
getTopic
public String getTopic()
return the topic used for the benchmark
getUseJNDIProperties
public String getUseJNDIProperties()
return whether the sampler should use properties file instead of UI
parameters.
- whether the sampler should use properties file instead of UI parameters.
getUseJNDIPropertiesAsBoolean
public boolean getUseJNDIPropertiesAsBoolean()
return the properties as boolean true/false.
- whether the sampler should use properties file instead of UI parameters.
getUsername
public String getUsername()
return the username used to login to the jms server
- the username used to login to the jms server
isUseAuth
public boolean isUseAuth()
return whether jndi requires authentication
- whether jndi requires authentication
sample
public SampleResult sample(Entry e)
Obtains statistics about the given Entry, and packages the information
into a SampleResult.
- sample in interface Sampler
setConnectionFactory
public void setConnectionFactory(String factory)
set the connection factory for
setIterations
public void setIterations(String count)
set the number of iterations the sampler should aggregate
setJNDIIntialContextFactory
public void setJNDIIntialContextFactory(String icf)
set the initial context factory
setPassword
public void setPassword(String pwd)
Set the password to login to the jms server
setProviderUrl
public void setProviderUrl(String url)
set the provider user for jndi
setReadResponse
public void setReadResponse(String read)
set whether the sampler should read the response or not
read
- whether the sampler should read the response or not
setTopic
public void setTopic(String topic)
set the topic
setUseAuth
public void setUseAuth(boolean useAuth)
Set whether authentication is required for JNDI
setUseJNDIProperties
public void setUseJNDIProperties(String properties)
if the sampler should use jndi.properties file, call the method with true
setUsername
public void setUsername(String user)
set the username to login into the jms server if needed