org.apache.activemq.benchmark
Class ProducerConsumer
java.lang.Object
org.apache.activemq.benchmark.BenchmarkSupport
org.apache.activemq.benchmark.Producer
org.apache.activemq.benchmark.ProducerConsumer
public class ProducerConsumer
- extends Producer
| Methods inherited from class org.apache.activemq.benchmark.Producer |
getLoops, getLoopSize, getMessage, getMessageSize, loadFile, publish, publish, publishLoop, setLoops, setLoopSize, setMessageSize |
| Methods inherited from class org.apache.activemq.benchmark.BenchmarkSupport |
addResource, asMemoryString, count, createDestination, createFactory, createSession, getConnectionCount, getCounter, getFactory, getUrl, isDurable, isTopic, parseBoolean, resetCount, setConnectionCount, setDurable, setFactory, setTimerLoop, start, timerLoop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProducerConsumer
public ProducerConsumer()
main
public static void main(String[] args)
run
public void run()
throws Exception
- Overrides:
run in class Producer
- Throws:
Exception
setTopic
public void setTopic(boolean topic)
- Overrides:
setTopic in class BenchmarkSupport
setSubject
public void setSubject(String subject)
- Overrides:
setSubject in class BenchmarkSupport
setUrl
public void setUrl(String url)
- Overrides:
setUrl in class BenchmarkSupport
useTimerLoop
protected boolean useTimerLoop()
- Overrides:
useTimerLoop in class BenchmarkSupport
getConsumer
public Consumer getConsumer()
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.