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