Package org.apache.jmeter
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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
UDP_PORT_DEFAULT
public final static String
HTTP_PROXY_PASS
public final static String
HTTP_PROXY_USER
public final static String
JMETER_NON_GUI
public final static String
JMETER_REPORT_OUTPUT_DIR_PROPERTY
public final static String
TREE_ICON_SIZE
public final static String
DEFAULT_TREE_ICON_SIZE
-
Constructor Summary
Constructors Constructor Description JMeter()
-
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
Array<Array<String>>
getIconMappings()
Array<Array<String>>
getResourceBundles()
static boolean
isNonGUI()
Check if JMeter is running in non-GUI mode. -
-
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
- Parameters:
tree
- The HashTree to convertcloneAtEnd
- boolean whether we clone the tree at end
-
getIconMappings
Array<Array<String>> getIconMappings()
-
getResourceBundles
Array<Array<String>> getResourceBundles()
-
isNonGUI
static boolean isNonGUI()
Check if JMeter is running in non-GUI mode.
-
-
-