public class JmsProducerClient extends AbstractJmsMeasurableClient
| Modifier and Type | Field and Description |
|---|---|
protected JmsProducerProperties |
client |
protected MessageProducer |
jmsProducer |
protected TextMessage |
jmsTextMessage |
throughputclientName, destCount, DESTINATION_SEPARATOR, destIndex, factory, jmsConnection, jmsSession| Constructor and Description |
|---|
JmsProducerClient(ConnectionFactory factory) |
JmsProducerClient(JmsProducerProperties clientProps,
ConnectionFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildText(String text,
int size) |
MessageProducer |
createJmsProducer() |
MessageProducer |
createJmsProducer(Destination dest) |
TextMessage |
createJmsTextMessage() |
TextMessage |
createJmsTextMessage(int size) |
TextMessage |
createJmsTextMessage(String text) |
protected Destination |
createTemporaryDestination(String destName) |
JmsClientProperties |
getClient() |
MessageProducer |
getJmsProducer() |
TextMessage |
getJmsTextMessage() |
protected TextMessage |
loadJmsMessage()
loads the message to be sent from the specified TextFile
|
void |
sendCountBasedMessages(long messageCount) |
void |
sendMessages() |
void |
sendMessages(int destCount) |
void |
sendMessages(int destIndex,
int destCount) |
void |
sendTimeBasedMessages(long duration) |
void |
setClient(JmsClientProperties clientProps) |
protected void |
sleep() |
getThroughput, incThroughput, incThroughput, reset, setThroughputcommitTxIfNecessary, createCompositeDestination, createCompositeDestination, createDestination, createDestinations, getClientName, getConnection, getDestCount, getDestinationType, getDestIndex, getFactory, getSession, getSimpleName, setClientName, setDestCount, setDestIndex, setFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientNameprotected JmsProducerProperties client
protected MessageProducer jmsProducer
protected TextMessage jmsTextMessage
public JmsProducerClient(ConnectionFactory factory)
public JmsProducerClient(JmsProducerProperties clientProps, ConnectionFactory factory)
public void sendMessages() throws JMSException
JMSExceptionpublic void sendMessages(int destCount) throws JMSException
JMSExceptionpublic void sendMessages(int destIndex, int destCount) throws JMSException
JMSExceptionpublic void sendCountBasedMessages(long messageCount) throws JMSException
JMSExceptionpublic void sendTimeBasedMessages(long duration) throws JMSException
JMSExceptionpublic MessageProducer createJmsProducer() throws JMSException
JMSExceptionpublic MessageProducer createJmsProducer(Destination dest) throws JMSException
JMSExceptionpublic MessageProducer getJmsProducer()
public TextMessage createJmsTextMessage() throws JMSException
JMSExceptionpublic TextMessage createJmsTextMessage(int size) throws JMSException
JMSExceptionpublic TextMessage createJmsTextMessage(String text) throws JMSException
JMSExceptionpublic TextMessage getJmsTextMessage()
public JmsClientProperties getClient()
getClient in class AbstractJmsClientpublic void setClient(JmsClientProperties clientProps)
setClient in class AbstractJmsClientprotected Destination createTemporaryDestination(String destName) throws JMSException
createTemporaryDestination in class AbstractJmsClientJMSExceptionprotected void sleep()
protected TextMessage loadJmsMessage() throws JMSException
JMSExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.