1 | void setTopic(String topic) {↵ | | 1 | void setRandomPath(String path) {↵
|
2 | setProperty(TOPIC, topic);↵ | | 2 | setProperty(RANDOM_PATH, path);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the topic used for the benchmark↵ | | 5 | * return the ↵
|
6 | * ↵ | | |
|
7 | * @return the topic↵ | | 6 | random path for messages↵
|
| | | 7 | * ↵
|
8 | */↵ | | 8 | */↵
|
9 | public String getTopic() {↵ | | 9 | public String getRandomPath() {↵
|
10 | return getPropertyAsString(TOPIC);↵ | | 10 | return getPropertyAsString(RANDOM_PATH);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * set the username to login into the jms server if needed↵ | | 13 | * set the text for the message↵
|
14 | * ↵ | | 14 | * ↵
|
15 | * @param user↵ | | 15 | * @param message↵
|
16 | */↵ | | 16 | */↵
|
17 | public void setUsername(String user) {↵ | | 17 | public void setTextMessage(String message) {↵
|
18 | setProperty(PRINCIPAL, user);↵ | | 18 | setProperty(TEXT_MSG, message);↵
|
19 | | | 19 |
|