1 | void setXmlData(String data) {↵ | | 1 | void setConnectionFactory(String factory) {↵
|
2 | setProperty(XML_DATA, data);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | public String getXmlData↵ | | 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 | */↵
|
5 | () {↵ | | 11 | public String getConnectionFactory() {↵
|
6 | return getPropertyAsString(XML_DATA);↵ | | 12 | return getPropertyAsString(CONN_FACTORY);↵
|
7 | }↵ | | 13 | }↵
|
|
8 | /**↵ | | 14 | /**↵
|
9 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | |
|
10 | * string path.↵ | | |
|
11 | *↵ | | |
|
12 | * @param filename↵ | | |
|
13 | ↵ | | 15 | * set the topic↵
|
| | | 16 | * ↵
|
| | | 17 | * @param topic↵
|
14 | */↵ | | 18 | */↵
|
15 | public void setXmlFile(String filename) {↵ | | 19 | public void setTopic(String ↵
|
16 | setProperty(XML_DATA_FILE, filename);↵ | | |
|
17 | ↵ | | 20 | topic) {↵
|
| | | 21 | setProperty(TOPIC, topic);↵
|
18 | }↵ | | 22 | }↵
|
|
19 | /**↵ | | 23 | /**↵
|
20 | * Get the file location of the xml file.↵ | | 24 | * return the ↵
|
21 | ↵ | | 25 | topic used for the benchmark↵
|
22 | *↵ | | 26 | * ↵
|
23 | * @return String file path.↵ | | 27 | * @return ↵
|
24 | ↵ | | 28 | the topic↵
|
25 | */↵ | | 29 | */↵
|
26 | public String getXmlFile() {↵ | | 30 | public String get↵
|
27 | ↵ | | 31 | Topic() {↵
|
28 | return getPropertyAsString(XML_DATA_FILE);↵ | | 32 | return getPropertyAsString(↵
|
29 | ↵ | | 33 | TOPIC);↵
|
30 | } | | 34 | }
|