Method Summary |
|
public static void | addLocaleChangeListener(LocaleChangeListener listener) |
public static JButton | createButton(String name, ActionListener listener) |
public static JButton | createSimpleButton(String name, ActionListener listener) |
public static File | findFile(String fileName) Find a file in the current directory or in the JMeter bin directory. |
public static int | findInArray(String[] array, String value) Finds a string in an array of strings and returns the
Parameters: array - Array of strings. Parameters: value - String to compare to array values. |
public static Hashtable | getAlias(Properties properties) Creates the vector of alias strings. |
public static Vector | getControllers(Properties properties) Creates a vector of SampleController plugins. |
public static Hashtable | getHashtable(Properties properties, String name) Creates a table of strings for all the properties that start with a
common prefix. |
public static ImageIcon | getImage(String name) This looks for the requested image in the classpath under
org.apache.jmeter.images. |
public static ImageIcon | getImage(String name, String description) This looks for the requested image in the classpath under
org.apache.jmeter.images. |
public static String | getJMeterBinDir() Get the JMeter bin directory - does not include the trailing separator. |
public static String | getJMeterCopyright() Gets the JMeter copyright. |
public static String | getJMeterHome() Get the JMeter home directory - does not include the trailing separator. |
public static Properties | getJMeterProperties() This gets the currently defined appProperties. |
public static String | getJMeterVersion() Gets the JMeter Version. |
public static Locale | getLocale() Gets the current locale. |
public static Perl5Matcher | getMatcher() Gets Perl5Matcher for this thread. |
public static Pattern | getPattern(String expression) Get a compiled expression from the pattern cache (READ_ONLY).
Parameters: expression - compiled pattern throws: org.apache.oro.text.regex.MalformedPatternException - (Runtime)This should be caught for expressions that may vary (e.g. |
public static Pattern | getPattern(String expression, int options) Get a compiled expression from the pattern cache.
Parameters: expression - RE Parameters: options - e.g. |
public static PatternCacheLRU | getPatternCache() |
public static int | getPropDefault(String propName, int defaultVal) Get a int value with default if not present.
Parameters: propName - the name of the property. Parameters: defaultVal - the default value. |
public static boolean | getPropDefault(String propName, boolean defaultVal) Get a boolean value with default if not present.
Parameters: propName - the name of the property. Parameters: defaultVal - the default value. |
public static long | getPropDefault(String propName, long defaultVal) Get a long value with default if not present.
Parameters: propName - the name of the property. Parameters: defaultVal - the default value. |
public static String | getPropDefault(String propName, String defaultVal) Get a String value with default if not present.
Parameters: propName - the name of the property. Parameters: defaultVal - the default value. |
public static Properties | getProperties(String file) This method is used by the init method to load the property file that may
even reside in the user space, or in the classpath under
org.apache.jmeter.jmeter.properties. |
public static String | getProperty(String propName) Get the value of a JMeter property.
Parameters: propName - the name of the property. |
public static int | getRandomInt(int r) |
public static String | getResString(String key) Gets the resource string for this key. |
public static String | getResString(String key, String defaultValue) Gets the resource string for this key. |
public static String | getResourceFileAsText(String name) |
public static String[] | getSearchPaths() |
public static String[] | getTestSamples(Properties properties, String name) Create a string of class names for a particular SamplerController
Parameters: properties - The properties with info about the samples. Parameters: name - The name of the sampler controller. |
public static Vector | getTimers(Properties properties) Creates the vector of Timers plugins. |
public static Vector | getVector(Properties properties, String name) Creates a vector of strings for all the properties that start with a
common prefix. |
public static Vector | getVisualizers(Properties properties) Creates the vector of visualizer plugins. |
public static XMLReader | getXMLParser() Create an instance of an org.xml.sax.Parser based on the default props. |
public static void | initLocale() |
public static void | initLogging() |
public void | initializeProperties(String file) |
public static Object | instantiate(String className, String impls) Instatiate an object and guarantee its class.
Parameters: className - The name of the class to instantiate. Parameters: impls - The name of the class it subclases. |
public static Vector | instantiate(Vector v, String className) |
public static boolean | isExpertMode() Determine whether we are in 'expert' mode. |
public static void | loadJMeterProperties(String file) Load the JMeter properties file; if not found, then
default to "org/apache/jmeter/jmeter.properties" from the classpath
c.f. |
public static Properties | loadProperties(String file) |
public static void | removeLocaleChangeListener(LocaleChangeListener listener) |
public static void | reportErrorToUser(String errorMsg) Report an error through a dialog box. |
public static void | reportErrorToUser(String errorMsg, String titleMsg) Report an error through a dialog box. |
public static void | selJComboBoxItem(Properties properties, JComboBox combo, Vector namVec, String name) Sets the selection of the JComboBox to the Object 'name' from the list in
namVec. |
public static void | setJMeterHome(String home) |
public static void | setLocale(Locale loc) Changes the current locale: re-reads resource strings and notifies
listeners. |
public static Object | setProperty(String propName, String propValue) |
public static Vector | tokenize(String string, String separator) |
public static String | unsplit(Object[] splittee, Object splitChar) Takes an array of strings and a tokenizer character, and returns a string
of all the strings concatenated with the tokenizer string in between each
one.
Parameters: splittee - Array of Objects to be concatenated. Parameters: splitChar - Object to unsplit the strings with. |
public static String | unsplit(Object[] splittee, Object splitChar, String def) Takes an array of strings and a tokenizer character, and returns a string
of all the strings concatenated with the tokenizer string in between each
one.
Parameters: splittee - Array of Objects to be concatenated. Parameters: splitChar - Object to unsplit the strings with. Parameters: def - Default value to replace null values in array. |