1 | void setInputFile(String file) {↵ | | 1 | void setTopic(String topic) {↵
|
2 | setProperty(INPUT_FILE, file);↵ | | 2 | setProperty(TOPIC, topic);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the path of the input file↵ | | 5 | * return the ↵
|
6 | * ↵ | | 6 | topic used for the benchmark↵
|
| | | 7 | * ↵
|
| | | 8 | * @return the topic↵
|
7 | */↵ | | 9 | */↵
|
8 | public String getInputFile() {↵ | | 10 | public String getTopic() {↵
|
9 | return getPropertyAsString(INPUT_FILE);↵ | | 11 | return getPropertyAsString(TOPIC);↵
|
10 | }↵ | | 12 | }↵
|
|
11 | /**↵ | | 13 | /**↵
|
12 | * set the random path for the messages↵ | | 14 | * set the username to login into the jms server if needed↵
|
13 | * ↵ | | 15 | * ↵
|
14 | * @param path↵ | | 16 | * @param user↵
|
15 | */↵ | | 17 | */↵
|
16 | public void setRandomPath(String path) {↵ | | 18 | public void setUsername(String user) {↵
|
17 | setProperty(RANDOM_PATH, path);↵ | | 19 | setProperty(PRINCIPAL, user);↵
|
18 | }↵ | | 20 | }↵
|
|
19 | /**↵ | | 21 | /**↵
|
20 | * return the random path for messages↵ | | 22 | * return the ↵
|
21 | * ↵ | | 23 | username used to login to the jms server↵
|
| | | 24 | * ↵
|
| | | 25 | * @return the username used to login to the jms server↵
|
22 | */↵ | | 26 | */↵
|
23 | public String getRandomPath() {↵ | | 27 | public String getUsername() {↵
|
24 | return getPropertyAsString(RANDOM_PATH);↵ | | 28 | return getPropertyAsString(PRINCIPAL);↵
|
25 | | | 29 |
|