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