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);
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);
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 setConnectionFactory(String factory) {
1
void setPassword(String pwd) {
2
		setProperty(CONN_FACTORY, factory);
2
		setProperty(CREDENTIALS, pwd);
3
	}
3
	}
4
	/**
4
	/**
5
	 * return the connection factory parameter used to lookup the connection
5
	 * return the 
6
	 * factory from the JMS server
6
password used to login to the jms server
7
	 * 
7
	 * 
8
	 * @return the connection factory
8
	 * @return the password used to login to the jms server
9
	 */
9
	 */
10
	public String getConnectionFactory() {
10
	public String getPassword() {
11
		return getPropertyAsString(CONN_FACTORY);
11
		return getPropertyAsString(CREDENTIALS);
12
	}
12
	}
13
	/**
13
	/**
14
	 * set the topic
14
	 * set the number of iterations the sampler should aggregate
15
	 * 
15
	 * 
16
	 * @param topic
16
	 * @param count
17
	 */
17
	 */
18
	public void setTopic(String topic) {
18
	public void setIterations(String count) {
19
		setProperty(TOPIC, topic);
19
		setProperty(ITERATIONS, count);
20
	}
20
	}
21
	/**
21
	/**
22
	 * return the topic used for the benchmark
22
	 * get the iterations as string
23
	 * 
23
	 * 
24
	 * @return the topic
24
	 * @return the number of iterations
25
	 */
25
	 */
26
	public String getTopic() {
26
	public String getIterations() {
27
		return getPropertyAsString(TOPIC);
27
		return getPropertyAsString(ITERATIONS);
28
	
28
	
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