1 | void setConnectionFactory(String factory) {↵ | | 1 | void setTopic(String topic) {↵
|
2 | setProperty(CONN_FACTORY, factory);↵ | | 2 | setProperty(TOPIC, topic);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the connection factory parameter used to lookup the connection↵ | | 5 | * return the ↵
|
6 | * factory from the JMS server↵ | | 6 | topic used for the benchmark↵
|
7 | * ↵ | | 7 | * ↵
|
8 | * @return the connection factory↵ | | 8 | * @return the topic↵
|
9 | */↵ | | 9 | */↵
|
10 | public String getConnectionFactory() {↵ | | 10 | public String getTopic() {↵
|
11 | return getPropertyAsString(CONN_FACTORY);↵ | | 11 | return getPropertyAsString(TOPIC);↵
|
12 | }↵ | | 12 | }↵
|
|
13 | /**↵ | | 13 | /**↵
|
14 | * set the topic↵ | | 14 | * set the username to login into the jms server if needed↵
|
15 | * ↵ | | 15 | * ↵
|
16 | * @param topic↵ | | 16 | * @param user↵
|
17 | */↵ | | 17 | */↵
|
18 | public void setTopic(String topic) {↵ | | 18 | public void setUsername(String user) {↵
|
19 | setProperty(TOPIC, topic);↵ | | 19 | setProperty(PRINCIPAL, user);↵
|
20 | }↵ | | 20 | }↵
|
|
21 | /**↵ | | 21 | /**↵
|
22 | * return the topic used for the benchmark↵ | | 22 | * return the ↵
|
23 | * ↵ | | |
|
24 | * @return the topic↵ | | 23 | username used to login to the jms server↵
|
| | | 24 | * ↵
|
| | | 25 | * @return the username used to login to the jms server↵
|
25 | */↵ | | 26 | */↵
|
26 | public String getTopic() {↵ | | 27 | public String getUsername() {↵
|
27 | return getPropertyAsString(TOPIC);↵ | | 28 | return getPropertyAsString(PRINCIPAL);↵
|
28 | | | 29 |
|