1 | void setTopic(String topic) {↵ | | 1 | void set↵
|
2 | setProperty(TOPIC, topic);↵ | | |
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * return the topic used for the benchmark↵ | | |
|
6 | * ↵ | | |
|
7 | * @return the topic↵ | | |
|
8 | */↵ | | 2 | DefaultValue(String defaultValue) {↵
|
| | | 3 | setProperty(DEFAULT, defaultValue);↵
|
| | | 4 | }↵
|
|
9 | public String getTopic() {↵ | | 5 | public String getDefaultValue() {↵
|
10 | return getPropertyAsString(TOPIC);↵ | | 6 | return getPropertyAsString(DEFAULT);↵
|
11 | }↵ | | 7 | }↵
|
|
12 | /**↵ | | |
|
13 | * set the username to login into the jms server if needed↵ | | |
|
14 | * ↵ | | |
|
15 | * @param user↵ | | |
|
16 | */↵ | | |
|
17 | public void setUsername(String user) {↵ | | 8 | public void setTemplate(String template) {↵
|
18 | setProperty(PRINCIPAL, user);↵ | | 9 | setProperty(TEMPLATE, template);↵
|
19 | } | | 10 | }
|