Class BackendListener

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Cloneable , org.apache.jmeter.engine.util.NoThreadClone , org.apache.jmeter.gui.Searchable , org.apache.jmeter.samplers.Remoteable , org.apache.jmeter.samplers.SampleListener , org.apache.jmeter.testelement.TestElement , org.apache.jmeter.testelement.TestStateListener , org.apache.jmeter.visualizers.backend.Backend

    
    public class BackendListener
    extends AbstractTestElement implements Backend, Serializable, SampleListener, TestStateListener, NoThreadClone, Remoteable
                        

    Async Listener that delegates SampleResult handling to implementations of BackendListenerClient

    Since:

    2.13

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BackendListener() Create a BackendListener.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Object clone()
      void sampleOccurred(SampleEvent event)
      void testStarted()
      void testStarted(String host)
      void testEnded(String host) Method called at the end of the test.
      void testEnded()
      void sampleStarted(SampleEvent e)
      void sampleStopped(SampleEvent e)
      void setArguments(Arguments args) Set the arguments (parameters) for the BackendListenerClient to be executed with.
      Arguments getArguments() Get the arguments (parameters) for the BackendListenerClient to be executed with.
      void setClassname(String classname) Sets the Classname of the BackendListenerClient object
      String getClassname() Gets the Classname of the BackendListenerClient object
      void setQueueSize(String queueSize) Sets the queue size
      String getQueueSize() Gets the queue size
      • Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

        addTestElement, canRemove, clear, clearTestElementChildren, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
      • Methods inherited from class org.apache.jmeter.testelement.TestElement

        get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BackendListener

        BackendListener()
        Create a BackendListener.
    • Method Detail

      • testEnded

         void testEnded(String host)

        Method called at the end of the test. This is called only on one instance of BackendListener. This method will loop through all of the other BackendListenerClients which have been registered (automatically in the constructor) and notify them that the test has ended, allowing the BackendListenerClients to cleanup. Implements TestStateListener.testEnded(String)

      • setArguments

         void setArguments(Arguments args)

        Set the arguments (parameters) for the BackendListenerClient to be executed with.

        Parameters:
        args - the new arguments.
      • getArguments

         Arguments getArguments()

        Get the arguments (parameters) for the BackendListenerClient to be executed with.

        Returns:

        the arguments

      • setClassname

         void setClassname(String classname)

        Sets the Classname of the BackendListenerClient object

        Parameters:
        classname - the new Classname value
      • getClassname

         String getClassname()

        Gets the Classname of the BackendListenerClient object

        Returns:

        the Classname value

      • setQueueSize

         void setQueueSize(String queueSize)

        Sets the queue size

        Parameters:
        queueSize - the size of the queue