Apache JMeter
2.1.1

org.apache.jmeter.protocol.jms.sampler
Class JMSSampler

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.samplers.AbstractSampler
          extended byorg.apache.jmeter.protocol.jms.sampler.JMSSampler
All Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement

public class JMSSampler
extends AbstractSampler

Sampler for JMS Communication.
Created on: October 28, 2004

Version:
$Id: JMSSampler.java,v 1.9 2005/07/12 20:50:50 mstover1 Exp $
Author:
Martijn Blankestijn
See Also:
Serialized Form

Field Summary
static String IS_ONE_WAY
           
static String JMS_PROPERTIES
           
static String JNDI_CONTEXT_PROVIDER_URL
           
static String JNDI_INITIAL_CONTEXT_FACTORY
           
static String JNDI_PROPERTIES
           
static String QUEUE_CONNECTION_FACTORY_JNDI
           
static String RECEIVE_QUEUE
           
static String SEND_QUEUE
           
static String TIMEOUT
           
static String XML_DATA
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
JMSSampler()
           
 
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 isOneway()
           
 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 setQueueConnectionFactory(String qcf)
           
 void setReceiveQueue(String name)
           
 void setSendQueue(String name)
           
 void setTimeout(int i)
           
 void testEnded()
           
 void testIterationStart(LoopIterationEvent event)
           
 void testStarted()
           
 void threadFinished()
          Called at the end of each thread.
 void threadStarted()
          Called at the start of each thread.
 String toString()
           
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, 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
addTestElement, canRemove, clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
 

Field Detail

JNDI_INITIAL_CONTEXT_FACTORY

public static final String JNDI_INITIAL_CONTEXT_FACTORY
See Also:
Constant Field Values

JNDI_CONTEXT_PROVIDER_URL

public static final String JNDI_CONTEXT_PROVIDER_URL
See Also:
Constant Field Values

JNDI_PROPERTIES

public static final String JNDI_PROPERTIES
See Also:
Constant Field Values

TIMEOUT

public static final String TIMEOUT
See Also:
Constant Field Values

IS_ONE_WAY

public static final String IS_ONE_WAY
See Also:
Constant Field Values

JMS_PROPERTIES

public static final String JMS_PROPERTIES
See Also:
Constant Field Values

RECEIVE_QUEUE

public static final String RECEIVE_QUEUE
See Also:
Constant Field Values

XML_DATA

public static final String XML_DATA
See Also:
Constant Field Values

SEND_QUEUE

public static final String SEND_QUEUE
See Also:
Constant Field Values

QUEUE_CONNECTION_FACTORY_JNDI

public static final String QUEUE_CONNECTION_FACTORY_JNDI
See Also:
Constant Field Values
Constructor Detail

JMSSampler

public JMSSampler()
Method Detail

sample

public SampleResult sample(Entry entry)
Description copied from interface: Sampler
Obtains statistics about the given Entry, and packages the information into a SampleResult.


getJMSProperties

public Arguments getJMSProperties()

getJNDIProperties

public Arguments getJNDIProperties()

getQueueConnectionFactory

public String getQueueConnectionFactory()

setQueueConnectionFactory

public void setQueueConnectionFactory(String qcf)

getSendQueue

public String getSendQueue()

setSendQueue

public void setSendQueue(String name)

getReceiveQueue

public String getReceiveQueue()

setReceiveQueue

public void setReceiveQueue(String name)

getContent

public String getContent()

setContent

public void setContent(String content)

isOneway

public boolean isOneway()

getInitialContextFactory

public String getInitialContextFactory()

getContextProvider

public String getContextProvider()

setIsOneway

public void setIsOneway(boolean isOneway)

toString

public String toString()

testStarted

public void testStarted()

testEnded

public void testEnded()

testIterationStart

public void testIterationStart(LoopIterationEvent event)

threadStarted

public void threadStarted()
Description copied from interface: TestElement
Called at the start of each thread. TODO - should it hava a parameter?

Specified by:
threadStarted in interface TestElement
Overrides:
threadStarted in class AbstractTestElement

getTimeout

public int getTimeout()
Returns:

threadFinished

public void threadFinished()
Description copied from interface: TestElement
Called at the end of each thread. TODO - should it hava a parameter?

Specified by:
threadFinished in interface TestElement
Overrides:
threadFinished in class AbstractTestElement

setArguments

public void setArguments(Arguments args)

getArguments

public Arguments getArguments(String name)

setTimeout

public void setTimeout(int i)
Parameters:
i -

setInitialContextFactory

public void setInitialContextFactory(String string)
Parameters:
string -

setContextProvider

public void setContextProvider(String string)
Parameters:
string -

Apache JMeter
2.1.1

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