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 setVarName(String name) { setProperty(VAR_NAME, name); } public String getVarName() { return getPropertyAsString(VAR_NAME); } public void setFormat(String format) { setProperty(FORMAT, format); } public String getFormat() { return getPropertyAsString(FORMAT);
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/modifiers/CounterConfig.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setConnectionFactory(String factory) {
1
void setVarName(String name) {
2
		setProperty(CONN_FACTORY, factory);
2
		setProperty(
3
	}
4
	/**
5
	 * return the connection factory parameter used to lookup the connection
6
	 * factory from the JMS server
7
	 * 
8
	 * @return the connection factory
9
	 */
10
	public String getConnectionFactory
3
VAR_NAME, name);
4
	}
11
() {
5
	public String getVarName() {
12
		return getPropertyAsString(CONN_FACTORY);
6
		return getPropertyAsString(
13
	}
14
	/**
15
	 * set the topic
16
	 * 
17
	 * @param topic
18
	 */
19
	
7
VAR_NAME);
8
	}
20
public void setTopic(String topic) {
9
    public void setFormat(String 
21
		
10
format) {
22
setProperty(TOPIC, topic);
11
        setProperty(
23
	}
24
	/**
25
	 * return the topic used for the benchmark
26
	 * 
27
	 * @return the topic
28
	 */
29
	public String getTopic() {
30
		
12
FORMAT, format);
13
    }
14
    public String getFormat() {
31
return getPropertyAsString(TOPIC);
15
        return getPropertyAsString(
32
	
16
FORMAT);
17
    
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