org.apache.jmeter
Class JMeter

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--org.apache.jmeter.JMeter

public class JMeter
extends javax.swing.JFrame
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener

This is Apache JMeter main class that implements both drawing and action listening.

Version:
$Revision: 1.5 $ $Date: 1999/02/24 15:31:43 $
Author:
Stefano Mazzocchi
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  javax.swing.JDialog about
           
(package private)  java.util.Hashtable alias
           
(package private)  javax.swing.JCheckBox aliasCheck
           
(package private)  javax.swing.JButton clear
           
(package private)  javax.swing.JButton cookieButton
           
(package private)  javax.swing.JCheckBox cookieCheck
           
(package private)  java.lang.String cookieFile
           
(package private)  javax.swing.JComboBox cookieList
           
(package private)  javax.swing.ImageIcon disabled
           
(package private)  javax.swing.JCheckBox encodeCheck
           
(package private)  javax.swing.JFileChooser fileChooser
           
(package private)  javax.swing.ImageIcon idle
           
static java.lang.String IMAGES
           
(package private)  int maxSamplers
           
(package private)  java.util.Properties properties
           
static java.lang.String PROPERTIES
           
(package private)  java.lang.String query
           
(package private)  javax.swing.JCheckBox queryCheck
           
(package private)  javax.swing.JComboBox queryList
           
(package private)  java.util.Vector sampler
           
(package private)  int samplers
           
(package private)  javax.swing.JSlider slider
           
(package private)  javax.swing.JButton start
           
(package private)  javax.swing.JButton stop
           
(package private)  java.lang.String threadImage
           
(package private)  Timer timer
           
(package private)  javax.swing.JComboBox timerList
           
(package private)  javax.swing.JPanel timers
           
static java.lang.String URL_SEPARATOR
           
(package private)  javax.swing.JComboBox urlList
           
(package private)  java.util.Vector urls
           
static java.lang.String VERSION
           
(package private)  Visualizer visualizer
           
(package private)  javax.swing.JComboBox visualizerList
           
(package private)  javax.swing.JPanel visualizers
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis
 
Fields inherited from class java.awt.Window
active, base, focusMgr, inputContext, nameCounter, OPENED, ownedWindowList, serialVersionUID, state, warningString, weakThis, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
(package private) JMeter(java.lang.String file)
           
 
Method Summary
(package private)  void about()
          Called by about button.
 void actionPerformed(java.awt.event.ActionEvent e)
          Action listener that handles all GUI events in this class.
(package private)  void draw()
          Draw the whole thing.
static void error(java.lang.Exception e, java.awt.Component thrower)
          Method used to signal an Exception to the user.
static void fail(java.lang.String message)
          Method used to fail the application if a fatal error is found.
(package private)  java.lang.String getCookies()
          Get the cookie file
(package private)  java.lang.String getQuery()
          Get the query string
(package private)  java.util.Vector getURLs()
          Get the vector of valid URL objects
(package private)  void init(java.lang.String file)
          This method is used by the constructor to load the property file that may even reside in the user space, or in the classpath under org.apache.jmeter.jmeter.properties
static void main(java.lang.String[] arguments)
          Main method that chooses L&F and created the JMeter object.
(package private)  void start()
          Called by start button.
 void stateChanged(javax.swing.event.ChangeEvent e)
          Change listener that handles thread slider events.
(package private)  void stop()
          Called by stop button.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, createRootPaneException, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, initIDs, isResizable, postProcessKeyEvent, readObject, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle, writeObject
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printOneComponent, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION

PROPERTIES

public static final java.lang.String PROPERTIES

IMAGES

public static final java.lang.String IMAGES

URL_SEPARATOR

public static final java.lang.String URL_SEPARATOR

samplers

int samplers

maxSamplers

int maxSamplers

sampler

java.util.Vector sampler

alias

java.util.Hashtable alias

visualizer

Visualizer visualizer

properties

java.util.Properties properties

timer

Timer timer

threadImage

java.lang.String threadImage

query

java.lang.String query

cookieFile

java.lang.String cookieFile

urls

java.util.Vector urls

start

javax.swing.JButton start

stop

javax.swing.JButton stop

clear

javax.swing.JButton clear

cookieButton

javax.swing.JButton cookieButton

slider

javax.swing.JSlider slider

queryCheck

javax.swing.JCheckBox queryCheck

encodeCheck

javax.swing.JCheckBox encodeCheck

aliasCheck

javax.swing.JCheckBox aliasCheck

cookieCheck

javax.swing.JCheckBox cookieCheck

urlList

javax.swing.JComboBox urlList

queryList

javax.swing.JComboBox queryList

cookieList

javax.swing.JComboBox cookieList

timerList

javax.swing.JComboBox timerList

visualizerList

javax.swing.JComboBox visualizerList

fileChooser

javax.swing.JFileChooser fileChooser

about

javax.swing.JDialog about

timers

javax.swing.JPanel timers

visualizers

javax.swing.JPanel visualizers

disabled

javax.swing.ImageIcon disabled

idle

javax.swing.ImageIcon idle
Constructor Detail

JMeter

JMeter(java.lang.String file)
Method Detail

init

void init(java.lang.String file)
This method is used by the constructor to load the property file that may even reside in the user space, or in the classpath under org.apache.jmeter.jmeter.properties

draw

void draw()
Draw the whole thing.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Action listener that handles all GUI events in this class.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Change listener that handles thread slider events.
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

getCookies

java.lang.String getCookies()
Get the cookie file

getQuery

java.lang.String getQuery()
Get the query string

getURLs

java.util.Vector getURLs()
Get the vector of valid URL objects

start

void start()
Called by start button. Starts up sampling threads.

stop

void stop()
Called by stop button. Stops sampling threads.

about

void about()
Called by about button. Raises about dialog.

main

public static void main(java.lang.String[] arguments)
Main method that chooses L&F and created the JMeter object.

error

public static void error(java.lang.Exception e,
                         java.awt.Component thrower)
Method used to signal an Exception to the user.

fail

public static void fail(java.lang.String message)
Method used to fail the application if a fatal error is found.

Copyright (c) 1998-99 The Java Apache Project