1 | void setRegex(String regex) {↵ | | 1 | void setConnectionFactory(String factory) {↵
|
2 | setProperty(REGEX, regex);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
|
4 | public String getRegex() {↵ | | |
|
5 | return getPropertyAsString(REGEX);↵ | | |
|
6 | }↵ | | |
|
| | | 3 | CONN_FACTORY, factory);↵
|
| | | 4 | }↵
|
|
| | | 5 | /**↵
|
| | | 6 | * return the connection factory parameter used to lookup the connection↵
|
| | | 7 | * factory from the JMS server↵
|
| | | 8 | * ↵
|
| | | 9 | * @return the connection factory↵
|
| | | 10 | */↵
|
| | | 11 | public String getConnectionFactory() {↵
|
| | | 12 | return getPropertyAsString(CONN_FACTORY);↵
|
| | | 13 | }↵
|
|
| | | 14 | /**↵
|
| | | 15 | * set the topic↵
|
| | | 16 | * ↵
|
| | | 17 | * @param topic↵
|
| | | 18 | */↵
|
7 | public void setRefName(String refName) {↵ | | 19 | public void setTopic(String topic) {↵
|
8 | setProperty(REFNAME, refName);↵ | | 20 | setProperty(↵
|
9 | }↵ | | |
|
| | | 21 | TOPIC, topic);↵
|
| | | 22 | }↵
|
|
| | | 23 | /**↵
|
| | | 24 | * return the topic used for the benchmark↵
|
| | | 25 | * ↵
|
| | | 26 | * @return the topic↵
|
| | | 27 | */↵
|
10 | public String getRefName() {↵ | | 28 | public String getTopic() {↵
|
11 | return getPropertyAsString(REFNAME);↵ | | 29 | return getPropertyAsString(TOPIC);↵
|
12 | } | | 30 | }
|