1 | void setFilename(String newFilename) {↵ | | 1 | void setConnectionFactory(String factory) {↵
|
2 | this.setProperty(FILENAME, newFilename);↵ | | 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 getFilename() {↵ | | 11 | public String getConnectionFactory() {↵
|
5 | return getPropertyAsString(FILENAME);↵ | | 12 | return getPropertyAsString(↵
|
6 | }↵ | | |
|
|
7 | public void setRequestData(String newRequestData↵ | | 13 | CONN_FACTORY);↵
|
| | | 14 | }↵
|
|
| | | 15 | /**↵
|
| | | 16 | * set the topic↵
|
| | | 17 | * ↵
|
| | | 18 | * @param topic↵
|
| | | 19 | */↵
|
8 | ) {↵ | | 20 | public void setTopic(String topic) {↵
|
9 | this.setProperty(REQUEST, newRequestData);↵ | | 21 | setProperty(↵
|
10 | }↵ | | |
|
| | | 22 | TOPIC, topic);↵
|
| | | 23 | }↵
|
|
| | | 24 | /**↵
|
| | | 25 | * return the topic used for the benchmark↵
|
| | | 26 | * ↵
|
| | | 27 | * @return the topic↵
|
| | | 28 | */↵
|
11 | public String getRequestData() {↵ | | 29 | public String getTopic() {↵
|
12 | return getPropertyAsString(REQUEST);↵ | | 30 | return getPropertyAsString(TOPIC);↵
|
13 | } | | 31 | }
|