org.apache.activemq.benchmark
Class ProducerConsumer

java.lang.Object
  extended by org.apache.activemq.benchmark.BenchmarkSupport
      extended by org.apache.activemq.benchmark.Producer
          extended by org.apache.activemq.benchmark.ProducerConsumer

public class ProducerConsumer
extends Producer

Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.activemq.benchmark.BenchmarkSupport
batch, connectionCount, destination, subjects
 
Constructor Summary
ProducerConsumer()
           
 
Method Summary
 Consumer getConsumer()
           
static void main(java.lang.String[] args)
           
 void run()
           
 void setSubject(java.lang.String subject)
           
 void setTopic(boolean topic)
           
 void setUrl(java.lang.String url)
           
protected  boolean useTimerLoop()
           
 
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
 

Constructor Detail

ProducerConsumer

public ProducerConsumer()
Method Detail

main

public static void main(java.lang.String[] args)

run

public void run()
         throws java.lang.Exception
Overrides:
run in class Producer
Throws:
java.lang.Exception

setTopic

public void setTopic(boolean topic)
Overrides:
setTopic in class BenchmarkSupport

setSubject

public void setSubject(java.lang.String subject)
Overrides:
setSubject in class BenchmarkSupport

setUrl

public void setUrl(java.lang.String url)
Overrides:
setUrl in class BenchmarkSupport

useTimerLoop

protected boolean useTimerLoop()
Overrides:
useTimerLoop in class BenchmarkSupport

getConsumer

public Consumer getConsumer()


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.