1 | void setConnectionFactory(String factory) {↵ | | 1 | void setVarName(String name) {↵
|
2 | setProperty(CONN_FACTORY, factory);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * return the connection factory parameter used to lookup the connection↵ | | |
|
6 | * factory from the JMS server↵ | | |
|
7 | * ↵ | | |
|
8 | * @return the connection factory↵ | | |
|
9 | */↵ | | |
|
10 | public String getConnectionFactory↵ | | 3 | VAR_NAME, name);↵
|
| | | 4 | }↵
|
|
11 | () {↵ | | 5 | public String getVarName() {↵
|
12 | return getPropertyAsString(CONN_FACTORY);↵ | | 6 | return getPropertyAsString(↵
|
13 | }↵ | | |
|
|
14 | /**↵ | | |
|
15 | * set the topic↵ | | |
|
16 | * ↵ | | |
|
17 | * @param topic↵ | | |
|
18 | */↵ | | |
|
19 | ↵ | | 7 | VAR_NAME);↵
|
| | | 8 | }↵
|
|
20 | public void setTopic(String topic) {↵ | | 9 | public void setFormat(String ↵
|
21 | ↵ | | 10 | format) {↵
|
22 | setProperty(TOPIC, topic);↵ | | 11 | setProperty(↵
|
23 | }↵ | | |
|
|
24 | /**↵ | | |
|
25 | * return the topic used for the benchmark↵ | | |
|
26 | * ↵ | | |
|
27 | * @return the topic↵ | | |
|
28 | */↵ | | |
|
29 | public String getTopic() {↵ | | |
|
30 | ↵ | | 12 | FORMAT, format);↵
|
| | | 13 | }↵
|
|
| | | 14 | public String getFormat() {↵
|
31 | return getPropertyAsString(TOPIC);↵ | | 15 | return getPropertyAsString(↵
|
32 | | | 16 | FORMAT);↵
|
| | | 17 |
|