org.apache.activemq.benchmark
Class BenchmarkSupport
java.lang.Object
org.apache.activemq.benchmark.BenchmarkSupport
- Direct Known Subclasses:
- Consumer, Producer
public class BenchmarkSupport
- extends Object
Abstract base class for some simple benchmark tools
- Version:
- $Revision$
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionCount
protected int connectionCount
batch
protected int batch
destination
protected javax.jms.Destination destination
subjects
protected String[] subjects
BenchmarkSupport
public BenchmarkSupport()
start
public void start()
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
isTopic
public boolean isTopic()
setTopic
public void setTopic(boolean topic)
getFactory
public ActiveMQConnectionFactory getFactory()
setFactory
public void setFactory(ActiveMQConnectionFactory factory)
setSubject
public void setSubject(String subject)
isDurable
public boolean isDurable()
setDurable
public void setDurable(boolean durable)
getConnectionCount
public int getConnectionCount()
setConnectionCount
public void setConnectionCount(int connectionCount)
createSession
protected javax.jms.Session createSession()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
createFactory
protected ActiveMQConnectionFactory createFactory()
count
protected void count(int count)
resetCount
protected int resetCount()
timerLoop
protected void timerLoop()
asMemoryString
protected String asMemoryString(long value)
useTimerLoop
protected boolean useTimerLoop()
createDestination
protected javax.jms.Destination createDestination(javax.jms.Session session,
String subject)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
addResource
protected void addResource(Object resource)
parseBoolean
protected static boolean parseBoolean(String text)
Copyright © 2011 Apache Software Foundation. All Rights Reserved.