|
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.ClientPool
public class ClientPool
ClientPool holds the client instances in an ArrayList. The main purpose of this is to make it easier to clean up all the instances at the end of a test. If we didn't do this, threads might become zombie. N.B. This class needs to be fully synchronized as it is called from sample threads and the thread that runs testEnded() methods.
Constructor Summary | |
---|---|
ClientPool()
|
Method Summary | |
---|---|
static void |
addClient(OnMessageSubscriber client)
Add a OnMessageClient to the ClientPool. |
static void |
addClient(Publisher client)
Add a Publisher to the ClientPool. |
static void |
addClient(ReceiveSubscriber client)
Add a ReceiveClient to the ClientPool. |
static void |
clearClient()
Clear all the clients created by either Publish or Subscribe sampler. |
static java.lang.Object |
get(java.lang.Object key)
|
static void |
put(java.lang.Object key,
OnMessageSubscriber client)
|
static void |
put(java.lang.Object key,
Publisher client)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientPool()
Method Detail |
---|
public static void addClient(ReceiveSubscriber client)
client
- public static void addClient(OnMessageSubscriber client)
client
- public static void addClient(Publisher client)
client
- public static void clearClient()
public static void put(java.lang.Object key, OnMessageSubscriber client)
public static void put(java.lang.Object key, Publisher client)
public static java.lang.Object get(java.lang.Object key)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |