Class JSR223Listener

All Implemented Interfaces:
Serializable, Cloneable, Searchable, SampleListener, TestBean, org.apache.jmeter.testelement.TestElement, TestStateListener, Visualizer

public class JSR223Listener extends JSR223TestElement implements Cloneable, SampleListener, TestBean, Visualizer
Needs to implement Visualizer so that TestBeanGUI can find the correct GUI class
See Also:
  • Constructor Details

    • JSR223Listener

      public JSR223Listener()
  • Method Details

    • sampleOccurred

      public void sampleOccurred(SampleEvent event)
      Description copied from interface: SampleListener
      A sample has started and stopped.
      Specified by:
      sampleOccurred in interface SampleListener
      Parameters:
      event - the SampleEvent that has occurred
    • sampleStarted

      public void sampleStarted(SampleEvent e)
      Description copied from interface: SampleListener
      A sample has started.
      Specified by:
      sampleStarted in interface SampleListener
      Parameters:
      e - the SampleEvent that has started
    • sampleStopped

      public void sampleStopped(SampleEvent e)
      Description copied from interface: SampleListener
      A sample has stopped.
      Specified by:
      sampleStopped in interface SampleListener
      Parameters:
      e - the SampleEvent that has stopped
    • add

      public void add(SampleResult sample)
      Description copied from interface: Visualizer
      This method is called by sampling thread to inform the visualizer about the arrival of a new sample.
      Specified by:
      add in interface Visualizer
      Parameters:
      sample - the newly arrived sample
    • isStats

      public boolean isStats()
      Description copied from interface: Visualizer
      This method is used to indicate a visualizer generates statistics.
      Specified by:
      isStats in interface Visualizer
      Returns:
      true if visualiser generates statistics
    • clone

      public Object clone()
      Specified by:
      clone in interface org.apache.jmeter.testelement.TestElement
      Overrides:
      clone in class AbstractTestElement