org.apache.jmeter.visualizers
Class MailerVisualizer
- ActionListener, ChangeListener, Clearable, JMeterGUIComponent, Printable, UnsharedComponent, Visualizer
public class MailerVisualizer
implements ActionListener, Clearable, ChangeListener
This class implements a visualizer that mails a message when an error occurs.
void | actionPerformed(ActionEvent e) - Reacts on an ActionEvent (like pressing a button).
|
void | add(SampleResult res) - This method is called by sampling thread to inform the visualizer about
the arrival of a new sample.
|
void | clearData() - Clears any stored sampling-informations.
|
void | configure(TestElement el) - Restores MailerVisualizer.
|
TestElement | createTestElement() - Makes MailerVisualizer storable.
|
String | getAttributesTitle() - Returns a String for the title of the attributes-panel as set up in the
properties-file using the lookup-constant "mailer_attributes_panel".
|
JPanel | getControlPanel()
|
String | getLabelResource() - Get the component's resource name, which getStaticLabel uses to derive
the component's label in the local language.
|
void | modifyTestElement(TestElement c) - GUI components are responsible for populating TestElements they create
with the data currently held in the GUI components.
|
void | stateChanged(ChangeEvent e) - Invoked when the target of the listener has changed its state.
|
String | toString()
|
clearGui , configure , configureTestElement , createTestElement , getErrorLoggingCheckbox , getFile , getFilePanel , getModel , isStats , makeTitlePanel , modifyTestElement , setFile , setModel , stateChanged |
clearGui , configure , configureTestElement , createTitleLabel , getComment , getDocAnchor , getName , getNamePanel , getNode , getPrintableComponent , getStaticLabel , isEnabled , makeBorder , makeScrollPane , makeScrollPane , makeTitlePanel , setComment , setEnabled , setName , setNode |
MailerVisualizer
public MailerVisualizer()
Constructs the MailerVisualizer and initializes its GUI.
actionPerformed
public void actionPerformed(ActionEvent e)
Reacts on an ActionEvent (like pressing a button).
e
- The ActionEvent with information about the event and its
source.
add
public void add(SampleResult res)
This method is called by sampling thread to inform the visualizer about
the arrival of a new sample.
- add in interface Visualizer
clearData
public void clearData()
Clears any stored sampling-informations.
- clearData in interface Clearable
getAttributesTitle
public String getAttributesTitle()
Returns a String for the title of the attributes-panel as set up in the
properties-file using the lookup-constant "mailer_attributes_panel".
- The title of the component.
getControlPanel
public JPanel getControlPanel()
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.
- getLabelResource in interface JMeterGUIComponent
modifyTestElement
public void modifyTestElement(TestElement c)
GUI components are responsible for populating TestElements they create
with the data currently held in the GUI components. This method should
overwrite whatever data is currently in the TestElement as it is called
after a user has filled out the form elements in the gui with new
information.
- modifyTestElement in interface JMeterGUIComponent
- modifyTestElement in interface AbstractVisualizer
stateChanged
public void stateChanged(ChangeEvent e)
Invoked when the target of the listener has changed its state. This
implementation assumes that the target is the FilePanel, and will update
the result collector for the new filename.
- stateChanged in interface AbstractVisualizer
e
- the event that has occurred
toString
public String toString()
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.