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