1 | void setTopic(String topic) {↵ | | 1 | void setVarName(String name) {↵
|
2 | setProperty(TOPIC, topic);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * return the topic used for the benchmark↵ | | |
|
6 | * ↵ | | |
|
7 | * @return the topic↵ | | |
|
8 | */↵ | | 3 | VAR_NAME, name);↵
|
| | | 4 | }↵
|
|
9 | public String getTopic() {↵ | | 5 | public String getVarName() {↵
|
10 | return getPropertyAsString(TOPIC);↵ | | 6 | return getPropertyAsString(VAR_NAME);↵
|
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 set↵
|
18 | setProperty(PRINCIPAL, user);↵ | | |
|
19 | }↵ | | |
|
|
20 | /**↵ | | |
|
21 | * return the username used to login to the jms server↵ | | |
|
22 | * ↵ | | |
|
23 | * @return the username used to login to the jms server↵ | | |
|
24 | */↵ | | |
|
25 | public String getUsername() {↵ | | |
|
26 | ↵ | | 9 | Format(String format) {↵
|
| | | 10 | setProperty(FORMAT, format);↵
|
| | | 11 | }↵
|
|
| | | 12 | public String getFormat() {↵
|
27 | return getPropertyAsString(PRINCIPAL);↵ | | 13 | return getPropertyAsString(↵
|
28 | | | 14 | FORMAT);↵
|
| | | 15 |
|