public abstract class BaseJMSSampler extends AbstractSampler
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
BaseJMSSampler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureIsReconnectErrorCode() |
String |
getConnectionFactory()
return the connection factory parameter used to lookup the connection
factory from the JMS server
|
String |
getDestination()
return the destination (topic or queue name)
|
Predicate<String> |
getIsReconnectErrorCode() |
int |
getIterationCount()
get the number of samples to aggregate
|
String |
getIterations()
get the number of samples to aggregate
|
String |
getJNDIInitialContextFactory()
method returns the initial context factory for jndi initial context
lookup.
|
static String |
getMessageHeaders(javax.jms.Message message)
Returns a String with the JMS Message Header values.
|
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 store the response
|
boolean |
getReadResponseAsBoolean()
return whether the sampler should store the response
|
String |
getReconnectionErrorCodes() |
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
|
boolean |
isDestinationStatic()
return whether the sampler should use a static destination.
|
boolean |
isUseAuth()
return whether jndi requires authentication
|
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 |
setDestination(String dest)
set the destination (topic or queue name)
|
void |
setDestinationStatic(boolean isStatic)
if the sampler should use a static destination, call the method with true
|
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 store the response or not
|
void |
setReconnectionErrorCodes(String reconnectionErrorCodes) |
void |
setUseAuth(boolean useAuth)
Set whether authentication is required for JNDI
|
void |
setUseJNDIProperties(String properties)
if the sampler should use jndi.properties file, call the method with the string "true"
|
void |
setUsername(String user)
set the username to login into the jms server if needed
|
appliesaddPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyfinalize, getClass, notify, notifyAll, toString, wait, wait, waitaddTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traversepublic SampleResult sample(Entry e)
e - the Entry (TODO seems to be unused)public abstract SampleResult sample()
public void setJNDIIntialContextFactory(String icf)
icf - the initial context factorypublic String getJNDIInitialContextFactory()
public void setProviderUrl(String url)
url - the provider URLpublic String getProviderUrl()
public void setConnectionFactory(String factory)
factory - the connection factorypublic String getConnectionFactory()
public void setDestination(String dest)
dest - the destinationpublic String getDestination()
public void setUsername(String user)
user - the name of the userpublic String getUsername()
public void setPassword(String pwd)
pwd - the password to use for login on the jms serverpublic String getPassword()
public void setIterations(String count)
count - the number of iterationspublic String getIterations()
public int getIterationCount()
public void setUseAuth(boolean useAuth)
useAuth - flag whether to use authenticationpublic boolean isUseAuth()
public void setReadResponse(String read)
read - whether the sampler should store the response or notpublic String getReadResponse()
public boolean getReadResponseAsBoolean()
public void setUseJNDIProperties(String properties)
properties - flag whether to use jndi.properties filepublic String getUseJNDIProperties()
public boolean getUseJNDIPropertiesAsBoolean()
public void setDestinationStatic(boolean isStatic)
isStatic - flag whether the destination is a static destinationpublic boolean isDestinationStatic()
public static String getMessageHeaders(javax.jms.Message message)
message - JMS Messagepublic String getReconnectionErrorCodes()
public void setReconnectionErrorCodes(String reconnectionErrorCodes)
protected void configureIsReconnectErrorCode()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.