|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.protocol.jms.client.ConnectionFactory
public class ConnectionFactory
ConnectionFactory is responsible for creating new connections. Eventually, the connection factory should read an external configuration file and create a pool of connections. The current implementation just does the basics. Once the tires get kicked a bit, we can add connection pooling support. Note: the connection factory will retry to get the connection factory 5 times before giving up. Thanks to Peter Johnson for catching the bug and providing the patch.
Constructor Summary | |
---|---|
protected |
ConnectionFactory()
|
Method Summary | |
---|---|
static QueueConnection |
getQueueConnection(Context ctx,
String queueConn)
|
static QueueConnectionFactory |
getQueueConnectionFactory(Context ctx,
String fac)
|
static TopicConnection |
getTopicConnection()
|
static TopicConnectionFactory |
getTopicConnectionFactory(Context ctx,
String fac)
|
void |
testEnded()
endTest cleans up the client |
void |
testEnded(String test)
Called once for all threads after the end of a test. |
void |
testIterationStart(LoopIterationEvent event)
Each time through a Thread Group's test script, an iteration event is fired for each thread. |
void |
testStarted()
startTest sets up the client and gets it ready for the test. |
void |
testStarted(String test)
Called just before the start of the test from the main engine thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConnectionFactory()
Method Detail |
---|
public void testStarted(String test)
TestListener
Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.
N.B. testStarted() and testEnded() are called from different threads.
testStarted
in interface TestListener
StandardJMeterEngine.run()
public void testEnded(String test)
TestListener
Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.
N.B. testStarted() and testEnded() are called from different threads.
testEnded
in interface TestListener
StandardJMeterEngine.stopTest()
public void testEnded()
testEnded
in interface TestListener
junit.framework.TestListener#endTest(junit.framework.Test)
public void testStarted()
testStarted
in interface TestListener
StandardJMeterEngine.run()
public void testIterationStart(LoopIterationEvent event)
TestListener
testIterationStart
in interface TestListener
public static TopicConnectionFactory getTopicConnectionFactory(Context ctx, String fac)
public static QueueConnectionFactory getQueueConnectionFactory(Context ctx, String fac)
public static TopicConnection getTopicConnection()
public static QueueConnection getQueueConnection(Context ctx, String queueConn)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |