KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > visualizers > SimpleDataWriter


1 // $Header: /home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/visualizers/SimpleDataWriter.java,v 1.7 2004/03/05 01:33:33 sebb Exp $
2
/*
3  * Copyright 2000-2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17 */

18
19 package org.apache.jmeter.visualizers;
20
21
22 import java.awt.BorderLayout JavaDoc;
23
24 import org.apache.jmeter.samplers.Clearable;
25 import org.apache.jmeter.samplers.SampleResult;
26 import org.apache.jmeter.visualizers.gui.AbstractVisualizer;
27
28
29 /************************************************************
30  * This listener can record results to a file
31  * but not to the UI. It is meant to provide an efficient means of
32  * recording data by eliminating GUI overhead.
33  *
34  *@version $Revision: 1.7 $ $Date: 2004/03/05 01:33:33 $
35  ***********************************************************/

36
37 public class SimpleDataWriter
38     extends AbstractVisualizer
39     implements Clearable
40 {
41     /****************************************
42      * Create the SimpleDataWriter.
43      ***************************************/

44
45     public SimpleDataWriter()
46     {
47         init();
48         setName(getStaticLabel());
49     }
50
51     public String JavaDoc getLabelResource()
52     {
53         return "simple_data_writer_title";
54     }
55
56
57     /**
58         Initialize the component in the UI
59     **/

60
61     private void init()
62     {
63         setLayout(new BorderLayout JavaDoc());
64         setBorder(makeBorder());
65         
66         add(makeTitlePanel(), BorderLayout.NORTH);
67     }
68
69
70     /**
71         Does nothing, but required by interface.
72     **/

73
74     public void clear()
75     {
76     }
77
78
79     /**
80         Does nothing, but required by interface.
81         @param sample ignored
82     **/

83
84     public void add(SampleResult sample)
85     {
86     }
87 }
88
Popular Tags