void setProviderUrl(String url) { setProperty(PROVIDER_URL, url); } /** * method returns the provider url for jndi to connect to * * @return the provider URL */ public String getProviderUrl() { return getPropertyAsString(PROVIDER_URL); } /** * set the connection factory for * * @param factory */ public void setConnectionFactory(String factory) { setProperty(CONN_FACTORY, factory); } /** * return the connection factory parameter used to lookup the connection * factory from the JMS server * * @return the connection factory */ public String getConnectionFactory() { return getPropertyAsString(CONN_FACTORY); } /** * set the topic * * @param topic */ public void setTopic(String topic) { setProperty(TOPIC, topic); } /** * return the topic used for the benchmark * * @return the topic */ public String getTopic() { return getPropertyAsString(TOPIC); } /** * set the username to login into the jms server if needed * * @param user */ public void setUsername(String user) { setProperty(PRINCIPAL, user); } /** * return the username used to login to the jms server * * @return the username used to login to the jms server */ public String getUsername() { return getPropertyAsString(PRINCIPAL); } /** * Set the password to login to the jms server * * @param pwd */ public void setPassword(String pwd) { setProperty(CREDENTIALS, pwd); } /** * return the password used to login to the jms server * * @return the password used to login to the jms server */ public String getPassword() { return getPropertyAsString(CREDENTIALS); } /** * set the number of iterations the sampler should aggregate * * @param count */ public void setIterations(String count) { setProperty(ITERATIONS, count); } /** * get the iterations as string * * @return the number of iterations */ public String getIterations() { return getPropertyAsString(ITERATIONS);
void setJNDIIntialContextFactory(String icf) { setProperty(JNDI_INITIAL_CONTEXT_FAC, icf); } /** * method returns the initial context factory for jndi initial context * lookup. * * @return the initial context factory */ public String getJNDIInitialContextFactory() { return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC); } /** * set the provider user for jndi * * @param url the provider URL */ public void setProviderUrl(String url) { setProperty(PROVIDER_URL, url); } /** * method returns the provider url for jndi to connect to * * @return the provider URL */ public String getProviderUrl() { return getPropertyAsString(PROVIDER_URL); } /** * set the connection factory for * * @param factory */ public void setConnectionFactory(String factory) { setProperty(CONN_FACTORY, factory); } /** * return the connection factory parameter used to lookup the connection * factory from the JMS server * * @return the connection factory */ public String getConnectionFactory() { return getPropertyAsString(CONN_FACTORY); } /** * set the topic * * @param topic */ public void setTopic(String topic) { setProperty(TOPIC, topic); } /** * return the topic used for the benchmark * * @return the topic */ public String getTopic() { return getPropertyAsString(TOPIC); } /** * set the username to login into the jms server if needed * * @param user */ public void setUsername(String user) { setProperty(PRINCIPAL, user); } /** * return the username used to login to the jms server * * @return the username used to login to the jms server */ public String getUsername() { return getPropertyAsString(PRINCIPAL); } /** * Set the password to login to the jms server * * @param pwd */ public void setPassword(String pwd) { setProperty(CREDENTIALS, pwd); } /** * return the password used to login to the jms server * * @return the password used to login to the jms server */ public String getPassword() { return getPropertyAsString(CREDENTIALS);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/BaseJMSSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/BaseJMSSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
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
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0