1 | void setXmlPathLoc(String path) {↵ | | 1 | void setConnectionFactory(String factory) {↵
|
2 | setProperty(XML_PATH_LOC, path);↵ | | 2 | setProperty(CONN_FACTORY, factory);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Get the path where XML messages are stored. this is the directory where↵ | | 5 | * return the connection factory parameter used t↵
|
6 | * JMeter will randomly select a file.↵ | | 6 | o lookup the connection↵
|
| | | 7 | * factory from the JMS server↵
|
| | | 8 | * ↵
|
| | | 9 | * @return the connection factory↵
|
7 | */↵ | | 10 | */↵
|
8 | public String getXmlPathLoc() {↵ | | 11 | public String getConnectionFactory() {↵
|
9 | return getPropertyAsString(XML_PATH_LOC);↵ | | 12 | return getPropertyAsString(CONN_FACTORY);↵
|
10 | }↵ | | 13 | }↵
|
|
11 | /**↵ | | 14 | /**↵
|
12 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | 15 | * ↵
|
13 | * string path.↵ | | 16 | set the topic↵
|
14 | * ↵ | | 17 | * ↵
|
15 | * @param filename↵ | | 18 | * @param topic↵
|
16 | */↵ | | 19 | */↵
|
17 | public void setXmlFile(String filename) {↵ | | 20 | public void setTopic(String topic) {↵
|
18 | setProperty(XML_DATA_FILE, filename);↵ | | 21 | setProperty(TOPIC, topic);↵
|
19 | | | 22 |
|