|
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.ReceiveSubscriber
Constructor Summary | |
ReceiveSubscriber()
|
|
ReceiveSubscriber(boolean useProps,
String jndi,
String url,
String connfactory,
String topic,
String useAuth,
String user,
String pwd)
|
Method Summary | |
void |
clear()
Clear will set the buffer to zero and the result objects to null. |
void |
close()
close() will stop the connection first. |
int |
count(int increment)
Increment the count and return the new value |
byte[] |
getByteResult()
Get the message(s) as an array of byte[] |
String |
getMessage()
Get the message as a string |
void |
initConnection(Context ctx,
String connfactory,
String topic)
Create the connection, session and topic subscriber |
Context |
initJNDI(boolean useProps,
String jndi,
String url,
String useAuth,
String user,
String pwd)
Initialize the JNDI initial context |
protected void |
listen()
Listen for inbound messages |
int |
resetCount()
Reset will reset the counter and prepare for the next sample() call. |
void |
resume()
Resume will call Connection.start() and begin receiving messages from the JMS provider. |
void |
run()
run calls listen to begin listening for inboud messages from the provider. |
void |
setLoop(int loop)
Set the number of iterations for each call to sample() |
void |
start()
start will create a new thread and pass this class. once the thread is created, it calls Thread.start(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReceiveSubscriber()
public ReceiveSubscriber(boolean useProps, String jndi, String url, String connfactory, String topic, String useAuth, String user, String pwd)
Method Detail |
public Context initJNDI(boolean useProps, String jndi, String url, String useAuth, String user, String pwd)
useProps
- jndi
- url
- useAuth
- user
- pwd
-
public void initConnection(Context ctx, String connfactory, String topic)
ctx
- connfactory
- topic
- public void setLoop(int loop)
loop
- public void resume()
public String getMessage()
public byte[] getByteResult()
public void close()
public void clear()
public int count(int increment)
increment
- public int resetCount()
public void start()
public void run()
run
in interface Runnable
protected void listen()
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |