1 | void setXmlData(String data) {↵ | | 1 | void setTopic(String topic) {↵
|
2 | setProperty(XML_DATA, data);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
| | | 3 | TOPIC, topic);↵
|
| | | 4 | }↵
|
|
| | | 5 | /**↵
|
| | | 6 | * return the topic used for the benchmark↵
|
| | | 7 | * ↵
|
| | | 8 | * @return the topic↵
|
| | | 9 | */↵
|
4 | public String getXmlData() {↵ | | 10 | public String getTopic() {↵
|
5 | return getPropertyAsString(XML_DATA);↵ | | 11 | return getPropertyAsString(TOPIC);↵
|
6 | }↵ | | 12 | }↵
|
|
7 | /**↵ | | 13 | /**↵
|
8 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | |
|
9 | * string path.↵ | | |
|
10 | ↵ | | 14 | * set the username to login into the jms server if needed↵
|
11 | *↵ | | 15 | * ↵
|
12 | * @param filename↵ | | 16 | * @param ↵
|
13 | ↵ | | 17 | user↵
|
14 | */↵ | | 18 | */↵
|
15 | public void setXmlFile(String filename) {↵ | | 19 | public void setUsername(String ↵
|
16 | setProperty(XML_DATA_FILE, filename);↵ | | |
|
17 | ↵ | | 20 | user) {↵
|
| | | 21 | setProperty(PRINCIPAL, user);↵
|
18 | }↵ | | 22 | }↵
|
|
19 | /**↵ | | 23 | /**↵
|
20 | * Get the file location of the xml file.↵ | | 24 | * return the ↵
|
21 | ↵ | | 25 | username used to login to the jms server↵
|
22 | *↵ | | 26 | * ↵
|
23 | * @return String file path.↵ | | 27 | * @return ↵
|
24 | ↵ | | 28 | the username used to login to the jms server↵
|
25 | */↵ | | 29 | */↵
|
26 | public String getXmlFile() {↵ | | 30 | public String get↵
|
27 | ↵ | | 31 | Username() {↵
|
28 | return getPropertyAsString(XML_DATA_FILE);↵ | | 32 | return getPropertyAsString(↵
|
29 | | | 33 | PRINCIPAL);↵
|
| | | 34 |
|