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