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