org.apache.jmeter.visualizers

Class SimpleDataWriter

Implemented Interfaces:
ChangeListener, Clearable, JMeterGUIComponent, Printable, UnsharedComponent, Visualizer

public class SimpleDataWriter
extends AbstractVisualizer

This listener can record results to a file but not to the UI. It is meant to provide an efficient means of recording data by eliminating GUI overhead.

Field Summary

Fields inherited from class org.apache.jmeter.visualizers.gui.AbstractVisualizer

collector, isStats

Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

namePanel

Constructor Summary

SimpleDataWriter()
Create the SimpleDataWriter.

Method Summary

void
add(SampleResult sample)
Does nothing, but required by interface.
void
clearData()
Does nothing, but required by interface.
String
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language.

Methods inherited from class org.apache.jmeter.visualizers.gui.AbstractVisualizer

clearGui, configure, configureTestElement, createTestElement, getErrorLoggingCheckbox, getFile, getFilePanel, getModel, isStats, makeTitlePanel, modifyTestElement, setFile, setModel, stateChanged

Methods inherited from class org.apache.jmeter.visualizers.gui.AbstractListenerGui

createPopupMenu, getMenuCategories

Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

clearGui, configure, configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getNode, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setComment, setEnabled, setName, setNode

Constructor Details

SimpleDataWriter

public SimpleDataWriter()
Create the SimpleDataWriter.

Method Details

add

public void add(SampleResult sample)
Does nothing, but required by interface.
Specified by:
add in interface Visualizer
Parameters:
sample - ignored

clearData

public void clearData()
Does nothing, but required by interface.
Specified by:
clearData in interface Clearable

getLabelResource

public String getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language. Normally this method should be overriden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.
Specified by:
getLabelResource in interface JMeterGUIComponent
Returns:
the resource name

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.