1 | void setMessageChoice(String choice) {↵ | | 1 | void setPassword(String pwd) {↵
|
2 | setProperty(MESSAGE_CHOICE, choice);↵ | | 2 | setProperty(CREDENTIALS, pwd);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the source of the message↵ | | 5 | * return the ↵
|
6 | * ↵ | | 6 | password used to login to the jms server↵
|
| | | 7 | * ↵
|
| | | 8 | * @return the password used to login to the jms server↵
|
7 | */↵ | | 9 | */↵
|
8 | public String getMessageChoice() {↵ | | 10 | public String getPassword() {↵
|
9 | return getPropertyAsString(MESSAGE_CHOICE);↵ | | 11 | return getPropertyAsString(CREDENTIALS);↵
|
10 | }↵ | | 12 | }↵
|
|
11 | /**↵ | | 13 | /**↵
|
12 | * set the input file for the publisher↵ | | 14 | * set the number of iterations the sampler should aggregate↵
|
13 | * ↵ | | 15 | * ↵
|
14 | * @param file↵ | | 16 | * @param count↵
|
15 | */↵ | | 17 | */↵
|
16 | public void setInputFile(String file) {↵ | | 18 | public void setIterations(String count) {↵
|
17 | setProperty(INPUT_FILE, file);↵ | | 19 | setProperty(ITERATIONS, count);↵
|
18 | }↵ | | 20 | }↵
|
|
19 | /**↵ | | 21 | /**↵
|
20 | * return the path of the input file↵ | | 22 | * get the ↵
|
21 | * ↵ | | 23 | iterations as string↵
|
| | | 24 | * ↵
|
| | | 25 | * @return the number of iterations↵
|
22 | */↵ | | 26 | */↵
|
23 | public String getInputFile() {↵ | | 27 | public String getIterations() {↵
|
24 | return getPropertyAsString(INPUT_FILE);↵ | | 28 | return getPropertyAsString(ITERATIONS);↵
|
25 | } | | 29 | }
|