Class BoltConnectionElement

java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.protocol.bolt.config.BoltConnectionElement
All Implemented Interfaces:
Serializable, Cloneable, ConfigElement, Searchable, TestBean, org.apache.jmeter.testelement.TestElement, TestStateListener

public class BoltConnectionElement extends AbstractTestElement implements ConfigElement, TestStateListener, TestBean
See Also:
  • Field Details

  • Constructor Details

    • BoltConnectionElement

      public BoltConnectionElement()
  • Method Details

    • addConfigElement

      public void addConfigElement(ConfigElement config)
      Description copied from interface: ConfigElement
      Add a configuration element to this one. This allows config elements to combine and give a "layered" effect. For example, HTTPConfigElements have properties for domain, path, method, and parameters. If element A has everything filled in, but null for domain, and element B is added, which has only domain filled in, then after adding B to A, A will have the domain from B. If A already had a domain, then the correct behavior is for A to ignore the addition of element B.
      Specified by:
      addConfigElement in interface ConfigElement
      Parameters:
      config - the element to be added to this ConfigElement
    • expectsModification

      public boolean expectsModification()
      Description copied from interface: ConfigElement
      If your config element expects to be modified in the process of a test run, and you want those modifications to carry over from sample to sample (as in a cookie manager - you want to save all cookies that get set throughout the test), then return true for this method. Your config element will not be cloned for each sample. If your config elements are more static in nature, return false. If in doubt, return false.
      Specified by:
      expectsModification in interface ConfigElement
      Returns:
      true if the element expects to be modified over the course of a test run
    • testStarted

      public void testStarted()
      Description copied from interface: TestStateListener

      Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.

      N.B. testStarted() and testEnded() are called from different threads.

      Specified by:
      testStarted in interface TestStateListener
      See Also:
    • testStarted

      public void testStarted(String host)
      Description copied from interface: TestStateListener

      Called just before the start of the test from the main engine thread. This is before the test elements are cloned. Note that not all the test variables will have been set up at this point.

      N.B. testStarted() and testEnded() are called from different threads.

      Specified by:
      testStarted in interface TestStateListener
      Parameters:
      host - name of host
      See Also:
    • testEnded

      public void testEnded()
      Description copied from interface: TestStateListener

      Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.

      N.B. testStarted() and testEnded() are called from different threads.

      Specified by:
      testEnded in interface TestStateListener
      See Also:
    • testEnded

      public void testEnded(String host)
      Description copied from interface: TestStateListener

      Called once for all threads after the end of a test. This will use the same element instances as at the start of the test.

      N.B. testStarted() and testEnded() are called from different threads.

      Specified by:
      testEnded in interface TestStateListener
      Parameters:
      host - name of host
      See Also:
    • getBoltUri

      public String getBoltUri()
    • setBoltUri

      public void setBoltUri(String boltUri)
    • getMaxConnectionPoolSize

      public int getMaxConnectionPoolSize()
    • setMaxConnectionPoolSize

      public void setMaxConnectionPoolSize(int maxConnectionPoolSize)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getDriver

      public static org.neo4j.driver.Driver getDriver()