1 | void setConnectionFactory(String factory) {↵ | | 1 | void setUseAuth(String auth) {↵
|
2 | setProperty(CONN_FACTORY, factory);↵ | | 2 | setProperty(USE_AUTH, auth);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the connection factory parameter used to lookup the connection↵ | | 5 | * return ↵
|
6 | * factory from the JMS server↵ | | 6 | whether jndi requires authentication↵
|
7 | * ↵ | | 7 | * ↵
|
8 | * @return the connection factory↵ | | 8 | * @return whether jndi requires authentication↵
|
9 | */↵ | | 9 | */↵
|
10 | public String getConnectionFactory() {↵ | | 10 | public String getUseAuth() {↵
|
11 | return getPropertyAsString(CONN_FACTORY);↵ | | 11 | return getPropertyAsString(USE_AUTH);↵
|
12 | }↵ | | 12 | }↵
|
|
13 | /**↵ | | 13 | /**↵
|
14 | * set the topic↵ | | 14 | * set whether t↵
|
15 | * ↵ | | |
|
16 | * @param topic↵ | | 15 | he sampler should read the response or not↵
|
| | | 16 | * ↵
|
| | | 17 | * @param read whether the sampler should read the response or not↵
|
17 | */↵ | | 18 | */↵
|
18 | public void setTopic(String topic) {↵ | | 19 | public void setReadResponse(String read) {↵
|
19 | setProperty(TOPIC, topic);↵ | | 20 | setProperty(READ_RESPONSE, read);↵
|
20 | }↵ | | 21 | }↵
|
|
21 | /**↵ | | 22 | /**↵
|
22 | * return the topic used for the benchmark↵ | | 23 | * return whether the sampler should read the response↵
|
23 | * ↵ | | 24 | * ↵
|
24 | * @return the topic↵ | | 25 | * @return whether the sampler should read the response↵
|
25 | */↵ | | 26 | */↵
|
26 | public String getTopic() {↵ | | 27 | public String getReadResponse() {↵
|
27 | return getPropertyAsString(TOPIC);↵ | | 28 | return getPropertyAsString(READ_RESPONSE);↵
|
28 | | | 29 |
|