public class JmsProducerClient extends AbstractJmsMeasurableClient
Modifier and Type | Field and Description |
---|---|
protected JmsProducerProperties |
client |
protected MessageProducer |
jmsProducer |
protected TextMessage |
jmsTextMessage |
throughput
clientName, 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, setThroughput
commitTxIfNecessary, createCompositeDestination, createCompositeDestination, createDestination, createDestinations, getClientName, getConnection, getDestCount, getDestinationType, getDestIndex, getFactory, getSession, getSimpleName, setClientName, setDestCount, setDestIndex, setFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClientName
protected JmsProducerProperties client
protected MessageProducer jmsProducer
protected TextMessage jmsTextMessage
public JmsProducerClient(ConnectionFactory factory)
public JmsProducerClient(JmsProducerProperties clientProps, ConnectionFactory factory)
public void sendMessages() throws JMSException
JMSException
public void sendMessages(int destCount) throws JMSException
JMSException
public void sendMessages(int destIndex, int destCount) throws JMSException
JMSException
public void sendCountBasedMessages(long messageCount) throws JMSException
JMSException
public void sendTimeBasedMessages(long duration) throws JMSException
JMSException
public MessageProducer createJmsProducer() throws JMSException
JMSException
public MessageProducer createJmsProducer(Destination dest) throws JMSException
JMSException
public MessageProducer getJmsProducer()
public TextMessage createJmsTextMessage() throws JMSException
JMSException
public TextMessage createJmsTextMessage(int size) throws JMSException
JMSException
public TextMessage createJmsTextMessage(String text) throws JMSException
JMSException
public TextMessage getJmsTextMessage()
public JmsClientProperties getClient()
getClient
in class AbstractJmsClient
public void setClient(JmsClientProperties clientProps)
setClient
in class AbstractJmsClient
protected Destination createTemporaryDestination(String destName) throws JMSException
createTemporaryDestination
in class AbstractJmsClient
JMSException
protected void sleep()
protected TextMessage loadJmsMessage() throws JMSException
JMSException
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.