String getQueueConnectionFactory() { return getPropertyAsString(QUEUE_CONNECTION_FACTORY_JNDI); } public void setQueueConnectionFactory(String qcf) { setProperty(QUEUE_CONNECTION_FACTORY_JNDI, qcf); } public String getSendQueue() { return getPropertyAsString(SEND_QUEUE); } public void setSendQueue(String name) { setProperty(SEND_QUEUE, name); } public String getReceiveQueue() { return getPropertyAsString(RECEIVE_QUEUE); } public void setReceiveQueue(String name) { setProperty(RECEIVE_QUEUE, name); } public String getContent() { return getPropertyAsString(XML_DATA); } public void setContent(String content) { setProperty(XML_DATA, content);
String getYAxis() { return getPropertyAsString(REPORT_CHART_Y_AXIS); } public void setYAxis(String scale) { setProperty(REPORT_CHART_Y_AXIS,scale); } public String getXLabel() { return getPropertyAsString(REPORT_CHART_X_LABEL); } /** * The X data labels should be either the filename, date or some * other series of values * @param label */ public void setXLabel(String label) { setProperty(REPORT_CHART_X_LABEL,label); } public String getYLabel() { return getPropertyAsString(REPORT_CHART_Y_LABEL); } public void setYLabel(String label) { setProperty(REPORT_CHART_Y_LABEL,label); } /** * The title is a the name for the chart. A page link will * be generated using the title. The title will also be * used for a page index. * @return chart title */ public String getTitle() { return getPropertyAsString(REPORT_CHART_TITLE); } /** * The title is a the name for the chart. A page link will * be generated using the title. The title will also be * used for a page index. * @param title */ public void setTitle(String title) { setProperty(REPORT_CHART_TITLE,title);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractChart.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getQueueConnectionFactory() {
1
String getYAxis() {
2
		return getPropertyAsString(QUEUE_CONNECTION_FACTORY_JNDI);
2
    	return getPropertyAsString(
3
	}
4
	public void setQueueConnectionFactory
3
REPORT_CHART_Y_AXIS);
4
    }
5
    
5
(String qcf) {
6
    public void setYAxis(String scale) {
6
		setProperty(QUEUE_CONNECTION_FACTORY_JNDI, qcf);
7
    	setProperty(
7
	
8
REPORT_CHART_Y_AXIS,scale);
8
}
9
    }
9
	public String getSendQueue() {
10
    public String getXLabel() {
10
		return getPropertyAsString(SEND_QUEUE);
11
    	return getPropertyAsString(
11
	}
12
	
12
REPORT_CHART_X_LABEL);
13
    }
14
    
15
    /**
16
     * The X data labels should be either the filename, date or some
17
     * other series of values
18
     * @param label
19
     */
13
public void setSendQueue(String name) {
20
    public void setXLabel(String label) {
14
		setProperty(SEND_QUEUE, name);
21
    	setProperty(
15
	}
16
	
22
REPORT_CHART_X_LABEL,label);
23
    }
24
    
17
public String getReceiveQueue() {
25
    public String getYLabel() {
18
		return getPropertyAsString(RECEIVE_QUEUE);
26
    	return getPropertyAsString(RE
19
	}
20
	
27
PORT_CHART_Y_LABEL);
28
    }
29
    
21
public void setReceiveQueue(String name) {
30
    public void setYLabel(String label) {
22
		setProperty(RECEIVE_QUEUE, name);
31
    	setProperty(RE
23
	}
24
	
32
PORT_CHART_Y_LABEL,label);
33
    }
34
    
35
    /**
36
     * The title is a the name for the chart. A page link will
37
     * be generated using the title. The title will also be
38
     * used for a page index.
39
     * @return chart title
40
     */
25
public String getContent() {
41
    public String getTitle() {
26
		return getPropertyAsString(XML_DATA);
42
    	return getPropertyAsString(
27
	}
28
	
43
REPORT_CHART_TITLE);
44
    }
45
    
46
    /**
47
     * The title is a the name for the chart. A page link will
48
     * be generated using the title. The title will also be
49
     * used for a page index.
50
     * @param title
51
     */
29
public void setContent(String content) {
52
    public void setTitle(String title) {
30
		setProperty(XML_DATA, content);
53
    	setProperty(
31
	
54
REPORT_CHART_TITLE,title);
55
    
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