org.apache.jmeter.protocol.jms.sampler

Class JMSSampler

Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement, ThreadListener

public class JMSSampler
extends AbstractSampler
implements ThreadListener

This class implements the JMS Point-to-Point sampler

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Method Summary

Arguments
getArguments(String name)
String
getContent()
String
getContextProvider()
String
getInitialContextFactory()
Arguments
getJMSProperties()
Arguments
getJNDIProperties()
String
getQueueConnectionFactory()
String
getReceiveQueue()
String
getSendQueue()
int
getTimeout()
boolean
isNonPersistent()
boolean
isOneway()
boolean
isUseReqMsgIdAsCorrelId()
SampleResult
sample(Entry entry)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
void
setArguments(Arguments args)
void
setContent(String content)
void
setContextProvider(String string)
void
setInitialContextFactory(String string)
void
setIsOneway(boolean isOneway)
void
setJMSProperties(Arguments args)
void
setJNDIProperties(Arguments args)
void
setNonPersistent(boolean value)
void
setQueueConnectionFactory(String qcf)
void
setReceiveQueue(String name)
void
setSendQueue(String name)
void
setTimeout(String s)
void
setUseReqMsgIdAsCorrelId(boolean value)
void
testIterationStart(LoopIterationEvent event)
void
threadFinished()
Called once for each thread at the end of a test
void
threadStarted()
Called just before the start of the thread
String
toString()

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Method Details

getArguments

public Arguments getArguments(String name)

getContent

public String getContent()

getContextProvider

public String getContextProvider()

getInitialContextFactory

public String getInitialContextFactory()

getJMSProperties

public Arguments getJMSProperties()

getJNDIProperties

public Arguments getJNDIProperties()

getQueueConnectionFactory

public String getQueueConnectionFactory()

getReceiveQueue

public String getReceiveQueue()

getSendQueue

public String getSendQueue()

getTimeout

public int getTimeout()

isNonPersistent

public boolean isNonPersistent()

isOneway

public boolean isOneway()

isUseReqMsgIdAsCorrelId

public boolean isUseReqMsgIdAsCorrelId()

sample

public SampleResult sample(Entry entry)
Obtains statistics about the given Entry, and packages the information into a SampleResult.
Specified by:
sample in interface Sampler

setArguments

public void setArguments(Arguments args)

setContent

public void setContent(String content)

setContextProvider

public void setContextProvider(String string)
Parameters:
string -

setInitialContextFactory

public void setInitialContextFactory(String string)
Parameters:
string -

setIsOneway

public void setIsOneway(boolean isOneway)

setJMSProperties

public void setJMSProperties(Arguments args)

setJNDIProperties

public void setJNDIProperties(Arguments args)

setNonPersistent

public void setNonPersistent(boolean value)

setQueueConnectionFactory

public void setQueueConnectionFactory(String qcf)

setReceiveQueue

public void setReceiveQueue(String name)

setSendQueue

public void setSendQueue(String name)

setTimeout

public void setTimeout(String s)

setUseReqMsgIdAsCorrelId

public void setUseReqMsgIdAsCorrelId(boolean value)

testIterationStart

public void testIterationStart(LoopIterationEvent event)

threadFinished

public void threadFinished()
Called once for each thread at the end of a test
Specified by:
threadFinished in interface ThreadListener
See Also:
org.apache.jmeter.threads.JMeterThread.threadFinished()

threadStarted

public void threadStarted()
Called just before the start of the thread
Specified by:
threadStarted in interface ThreadListener
See Also:
org.apache.jmeter.threads.JMeterThread.threadStarted()

toString

public String toString()

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.