| | | 1 | void setJNDIIntialContextFactory(String icf) {↵
|
| | | 2 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵
|
| | | 3 | }↵
|
|
| | | 4 | /**↵
|
| | | 5 | * method returns the initial context factory for jndi initial context↵
|
| | | 6 | * lookup.↵
|
| | | 7 | * ↵
|
| | | 8 | * @return the initial context factory ↵
|
| | | 9 | */↵
|
| | | 10 | public String getJNDIInitialContextFactory() {↵
|
| | | 11 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵
|
| | | 12 | }↵
|
|
| | | 13 | /**↵
|
| | | 14 | * set the provider user for jndi↵
|
| | | 15 | * ↵
|
| | | 16 | * @param url the provider URL↵
|
| | | 17 | */↵
|
1 | void setProviderUrl(String url) {↵ | | 18 | public void setProviderUrl(String url) {↵
|
2 | setProperty(PROVIDER_URL, url);↵ | | 19 | setProperty(PROVIDER_URL, url);↵
|
3 | }↵ | | 20 | }↵
|
|
4 | /**↵ | | 21 | /**↵
|
5 | * method returns the provider url for jndi to connect to↵ | | 22 | * method returns the provider url for jndi to connect to↵
|
6 | * ↵ | | 23 | * ↵
|
7 | * @return the provider URL↵ | | 24 | * @return the provider URL↵
|
8 | */↵ | | 25 | */↵
|
9 | public String getProviderUrl() {↵ | | 26 | public String getProviderUrl() {↵
|
10 | return getPropertyAsString(PROVIDER_URL);↵ | | 27 | return getPropertyAsString(PROVIDER_URL);↵
|
11 | }↵ | | 28 | }↵
|
|
12 | /**↵ | | 29 | /**↵
|
13 | * set the connection factory for↵ | | 30 | * set the connection factory for↵
|
14 | * ↵ | | 31 | * ↵
|
15 | * @param factory↵ | | 32 | * @param factory↵
|
16 | */↵ | | 33 | */↵
|
17 | public void setConnectionFactory(String factory) {↵ | | 34 | public void setConnectionFactory(String factory) {↵
|
18 | setProperty(CONN_FACTORY, factory);↵ | | 35 | setProperty(CONN_FACTORY, factory);↵
|
19 | }↵ | | 36 | }↵
|
|
20 | /**↵ | | 37 | /**↵
|
21 | * return the connection factory parameter used to lookup the connection↵ | | 38 | * return the connection factory parameter used to lookup the connection↵
|
22 | * factory from the JMS server↵ | | 39 | * factory from the JMS server↵
|
23 | * ↵ | | 40 | * ↵
|
24 | * @return the connection factory↵ | | 41 | * @return the connection factory↵
|
25 | */↵ | | 42 | */↵
|
26 | public String getConnectionFactory() {↵ | | 43 | public String getConnectionFactory() {↵
|
27 | return getPropertyAsString(CONN_FACTORY);↵ | | 44 | return getPropertyAsString(CONN_FACTORY);↵
|
28 | }↵ | | 45 | }↵
|
|
29 | /**↵ | | 46 | /**↵
|
30 | * set the topic↵ | | 47 | * set the topic↵
|
31 | * ↵ | | 48 | * ↵
|
32 | * @param topic↵ | | 49 | * @param topic↵
|
33 | */↵ | | 50 | */↵
|
34 | public void setTopic(String topic) {↵ | | 51 | public void setTopic(String topic) {↵
|
35 | setProperty(TOPIC, topic);↵ | | 52 | setProperty(TOPIC, topic);↵
|
36 | }↵ | | 53 | }↵
|
|
37 | /**↵ | | 54 | /**↵
|
38 | * return the topic used for the benchmark↵ | | 55 | * return the topic used for the benchmark↵
|
39 | * ↵ | | 56 | * ↵
|
40 | * @return the topic↵ | | 57 | * @return the topic↵
|
41 | */↵ | | 58 | */↵
|
42 | public String getTopic() {↵ | | 59 | public String getTopic() {↵
|
43 | return getPropertyAsString(TOPIC);↵ | | 60 | return getPropertyAsString(TOPIC);↵
|
44 | }↵ | | 61 | }↵
|
|
45 | /**↵ | | 62 | /**↵
|
46 | * set the username to login into the jms server if needed↵ | | 63 | * set the username to login into the jms server if needed↵
|
47 | * ↵ | | 64 | * ↵
|
48 | * @param user↵ | | 65 | * @param user↵
|
49 | */↵ | | 66 | */↵
|
50 | public void setUsername(String user) {↵ | | 67 | public void setUsername(String user) {↵
|
51 | setProperty(PRINCIPAL, user);↵ | | 68 | setProperty(PRINCIPAL, user);↵
|
52 | }↵ | | 69 | }↵
|
|
53 | /**↵ | | 70 | /**↵
|
54 | * return the username used to login to the jms server↵ | | 71 | * return the username used to login to the jms server↵
|
55 | * ↵ | | 72 | * ↵
|
56 | * @return the username used to login to the jms server↵ | | 73 | * @return the username used to login to the jms server↵
|
57 | */↵ | | 74 | */↵
|
58 | public String getUsername() {↵ | | 75 | public String getUsername() {↵
|
59 | return getPropertyAsString(PRINCIPAL);↵ | | 76 | return getPropertyAsString(PRINCIPAL);↵
|
60 | }↵ | | 77 | }↵
|
|
61 | /**↵ | | 78 | /**↵
|
62 | * Set the password to login to the jms server↵ | | 79 | * Set the password to login to the jms server↵
|
63 | * ↵ | | 80 | * ↵
|
64 | * @param pwd↵ | | 81 | * @param pwd↵
|
65 | */↵ | | 82 | */↵
|
66 | public void setPassword(String pwd) {↵ | | 83 | public void setPassword(String pwd) {↵
|
67 | setProperty(CREDENTIALS, pwd);↵ | | 84 | setProperty(CREDENTIALS, pwd);↵
|
68 | }↵ | | 85 | }↵
|
|
69 | /**↵ | | 86 | /**↵
|
70 | * return the password used to login to the jms server↵ | | 87 | * return the password used to login to the jms server↵
|
71 | * ↵ | | 88 | * ↵
|
72 | * @return the password used to login to the jms server↵ | | 89 | * @return the password used to login to the jms server↵
|
73 | */↵ | | 90 | */↵
|
74 | public String getPassword() {↵ | | 91 | public String getPassword() {↵
|
75 | return getPropertyAsString(CREDENTIALS);↵ | | 92 | return getPropertyAsString(CREDENTIALS);↵
|
76 | }↵ | | 93 |
|
|
77 | /**↵ | | | |
78 | * set the number of iterations the sampler should aggregate↵ | | | |
79 | * ↵ | | | |
80 | * @param count↵ | | | |
81 | */↵ | | | |
82 | public void setIterations(String count) {↵ | | | |
83 | setProperty(ITERATIONS, count);↵ | | | |
84 | }↵ | | | |
|
85 | /**↵ | | | |
86 | * get the iterations as string↵ | | | |
87 | * ↵ | | | |
88 | * @return the number of iterations↵ | | | |
89 | */↵ | | | |
90 | public String getIterations() {↵ | | | |
91 | return getPropertyAsString(ITERATIONS);↵ | | | |
92 | | | | |