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