1 | void setClassname(String classname)↵ | | 1 | void setC↵
|
2 | {↵ | | |
|
3 | setProperty(CLASSNAME, classname);↵ | | |
|
4 | ↵ | | 2 | onnectionFactory(String factory) {↵
|
| | | 3 | setProperty(CONN_FACTORY, factory);↵
|
5 | }↵ | | 4 | }↵
|
|
6 | /**↵ | | 5 | /**↵
|
7 | * Gets the Classname attribute of the JavaConfig object↵ | | 6 | * return the ↵
|
8 | *↵ | | |
|
9 | ↵ | | 7 | connection factory parameter used to lookup the connection↵
|
| | | 8 | * factory from the JMS server↵
|
| | | 9 | * ↵
|
10 | * @return the Classname value↵ | | 10 | * @return the ↵
|
11 | ↵ | | 11 | connection factory↵
|
12 | */↵ | | 12 | */↵
|
13 | public String getClassname()↵ | | 13 | public String getC↵
|
14 | {↵ | | |
|
15 | ↵ | | 14 | onnectionFactory() {↵
|
16 | return getPropertyAsString(CLASSNAME);↵ | | 15 | return getPropertyAsString(C↵
|
17 | }↵ | | |
|
18 | ↵ | | |
|
19 | ↵ | | 16 | ONN_FACTORY);↵
|
| | | 17 | }↵
|
|
20 | /**↵ | | 18 | /**↵
|
21 | * Set the string label used to create an instance of the↵ | | 19 | * set the ↵
|
22 | * test with the string constructor.↵ | | |
|
23 | * @param constr↵ | | |
|
24 | ↵ | | 20 | topic↵
|
| | | 21 | * ↵
|
| | | 22 | * @param topic↵
|
25 | */↵ | | 23 | */↵
|
26 | public void setConstructorString(String constr)↵ | | 24 | public void set↵
|
27 | {↵ | | |
|
28 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
29 | }↵ | | |
|
30 | ↵ | | |
|
31 | ↵ | | 25 | Topic(String topic) {↵
|
| | | 26 | setProperty(TOPIC, topic);↵
|
| | | 27 | }↵
|
|
32 | /**↵ | | 28 | /**↵
|
33 | * get the string passed to the string constructor↵ | | 29 | * return the topic used for the ↵
|
34 | ↵ | | 30 | benchmark↵
|
| | | 31 | * ↵
|
| | | 32 | * @return the topic↵
|
35 | */↵ | | 33 | */↵
|
36 | public String getConstructorString()↵ | | 34 | public String get↵
|
37 | {↵ | | |
|
38 | ↵ | | 35 | Topic() {↵
|
39 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 36 | return getPropertyAsString(↵
|
40 | ↵ | | 37 | TOPIC);↵
|
41 | } | | 38 | }
|