KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Header: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/visualizers/Visualizer.java,v 1.6 2004/02/13 02:40:54 sebb Exp $
2
/*
3  * Copyright 2001-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 import org.apache.jmeter.samplers.SampleResult;
21
22 /**
23  * Implement this method to be a Visualizer for JMeter. This interface defines
24  * a single method, "add()", that provides the means by which
25  * {@link org.apache.jmeter.samplers.SampleResult SampleResults} are passed to
26  * the implementing visualizer for display/logging. The easiest way to create
27  * the visualizer is to extend the
28  * {@link org.apache.jmeter.visualizers.gui.AbstractVisualizer}
29  * class.
30  *
31  * @author <a HREF="mailto:mstoer1@apache.org">Michael Stover</a>
32  * @version $Revision: 1.6 $ $Date: 2004/02/13 02:40:54 $
33  */

34 public interface Visualizer
35 {
36     /**
37      * This method is called by sampling thread to inform
38      * the visualizer about the arrival of a new sample.
39      */

40     public void add(SampleResult sample);
41 }
42
Popular Tags