Class JMeter

  • All Implemented Interfaces:
    org.apache.jmeter.plugin.JMeterPlugin

    
    public class JMeter
     implements JMeterPlugin
                        

    Main JMeter class; processes options and starts the GUI, non-GUI or server as appropriate.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      JMeter()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void start(Array<String> args) Takes the command line arguments and uses them to determine how to startup JMeter.
      static void convertSubTree(HashTree tree) This function does the following:
      • Remove disabled elements
      • Replace the ReplaceableController with the target subtree
      • Clone the tree to ensure Commonly referenced NoThreadClone elements are cloned
      static HashTree convertSubTree(HashTree tree, boolean cloneAtEnd) This function does the following:
      • Remove disabled elements
      • Replace the ReplaceableController with the target subtree
      • If cloneAtEnd is true : Clone the tree to ensure Commonly referenced NoThreadClone elements are cloned
      THIS IS INTERNAL JMETER API and should be used with care
      Array<Array<String>> getIconMappings()
      Array<Array<String>> getResourceBundles()
      static boolean isNonGUI() Check if JMeter is running in non-GUI mode.
      • Methods inherited from class java.lang.Object

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

      • JMeter

        JMeter()
    • Method Detail

      • start

         void start(Array<String> args)

        Takes the command line arguments and uses them to determine how to startup JMeter. Called reflectively by main

        Parameters:
        args - The arguments for JMeter
      • convertSubTree

        @Deprecated() static void convertSubTree(HashTree tree)

        This function does the following:

        • Remove disabled elements
        • Replace the ReplaceableController with the target subtree
        • Clone the tree to ensure Commonly referenced NoThreadClone elements are cloned
        Parameters:
        tree - The HashTree to convert
      • convertSubTree

         static HashTree convertSubTree(HashTree tree, boolean cloneAtEnd)

        This function does the following:

        • Remove disabled elements
        • Replace the ReplaceableController with the target subtree
        • If cloneAtEnd is true : Clone the tree to ensure Commonly referenced NoThreadClone elements are cloned
        THIS IS INTERNAL JMETER API and should be used with care
        Parameters:
        tree - The HashTree to convert
        cloneAtEnd - boolean whether we clone the tree at end
      • isNonGUI

         static boolean isNonGUI()

        Check if JMeter is running in non-GUI mode.