1 | void setPassword(String pwd) {↵ | | 1 | void setXmlData(String data) {↵
|
2 | setProperty(CREDENTIALS, pwd);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * return the password used to login to the jms server↵ | | |
|
6 | * ↵ | | |
|
7 | * @return the password used to login to the jms server↵ | | |
|
8 | */↵ | | 3 | XML_DATA, data);↵
|
| | | 4 | }↵
|
|
9 | public String getPassword() {↵ | | 5 | public String getXmlData() {↵
|
10 | return getPropertyAsString(CREDENTIALS);↵ | | 6 | return getPropertyAsString(XML_DATA);↵
|
11 | }↵ | | 7 | }↵
|
|
12 | /**↵ | | 8 | /**↵
|
13 | * set the number of iterations the sampler should aggregate↵ | | |
|
14 | * ↵ | | |
|
15 | * @param count↵ | | |
|
16 | ↵ | | 9 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 10 | * string path.↵
|
| | | 11 | *↵
|
| | | 12 | * @param filename↵
|
17 | */↵ | | 13 | */↵
|
18 | public void setIterations(String count) {↵ | | 14 | public void set↵
|
19 | setProperty(ITERATIONS, count);↵ | | |
|
20 | ↵ | | 15 | XmlFile(String filename) {↵
|
| | | 16 | setProperty(XML_DATA_FILE, filename);↵
|
21 | }↵ | | 17 | }↵
|
|
22 | /**↵ | | 18 | /**↵
|
23 | * get the iterations as string↵ | | 19 | * Get the ↵
|
24 | ↵ | | 20 | file location of the xml file.↵
|
25 | * ↵ | | 21 | *↵
|
26 | * @return the number of iterations↵ | | 22 | * @return ↵
|
27 | ↵ | | 23 | String file path.↵
|
28 | */↵ | | 24 | */↵
|
29 | public String getIterations() {↵ | | 25 | public String get↵
|
30 | ↵ | | 26 | XmlFile() {↵
|
31 | return getPropertyAsString(ITERATIONS);↵ | | 27 | return getPropertyAsString(↵
|
32 | ↵ | | 28 | XML_DATA_FILE);↵
|
33 | } | | 29 | }
|