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.3 $ $Date: 1999/01/25 15:41:41 $
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)  javax.swing.JButton clear
           
(package private)  javax.swing.ImageIcon disabled
           
(package private)  javax.swing.ImageIcon idle
           
static java.lang.String IMAGES
           
static int MAX_THREADS
           
(package private)  java.util.Properties properties
           
static java.lang.String PROPERTIES
           
(package private)  javax.swing.JCheckBox queryCheck
           
(package private)  javax.swing.JTextField queryTextField
           
(package private)  java.util.Vector sampler
           
(package private)  int samplers
           
(package private)  javax.swing.JSlider slider
           
(package private)  javax.swing.JButton start
           
static int START_THREADS
           
(package private)  javax.swing.JButton stop
           
(package private)  Timer timer
           
(package private)  javax.swing.JComboBox timerList
           
(package private)  javax.swing.JPanel timers
           
(package private)  javax.swing.JTextField urlTextField
           
static java.lang.String VERSION
           
(package private)  Visualiser visualiser
           
(package private)  javax.swing.JComboBox visualiserList
           
(package private)  javax.swing.JPanel visualisers
           
 
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)  javax.swing.JButton createButton(java.lang.String name)
          Create the Netscape style button
(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)  javax.swing.ImageIcon getImage(java.lang.String name)
          This looks for the requested image in the classpath under org.apache.jmeter.images.
(package private)  java.util.Properties getProperties(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
(package private)  java.util.Vector getTimers()
          Creates the vector of timer plugins.
(package private)  java.util.Vector getVisualisers()
          Creates the vector of visualiser plugins.
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

MAX_THREADS

public static final int MAX_THREADS

START_THREADS

public static final int START_THREADS

samplers

int samplers

sampler

java.util.Vector sampler

visualiser

Visualiser visualiser

properties

java.util.Properties properties

timer

Timer timer

start

javax.swing.JButton start

stop

javax.swing.JButton stop

clear

javax.swing.JButton clear

slider

javax.swing.JSlider slider

urlTextField

javax.swing.JTextField urlTextField

queryTextField

javax.swing.JTextField queryTextField

queryCheck

javax.swing.JCheckBox queryCheck

timerList

javax.swing.JComboBox timerList

visualiserList

javax.swing.JComboBox visualiserList

about

javax.swing.JDialog about

timers

javax.swing.JPanel timers

visualisers

javax.swing.JPanel visualisers

disabled

javax.swing.ImageIcon disabled

idle

javax.swing.ImageIcon idle
Constructor Detail

JMeter

JMeter(java.lang.String file)
Method Detail

getProperties

java.util.Properties getProperties(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

getImage

javax.swing.ImageIcon getImage(java.lang.String name)
This looks for the requested image in the classpath under org.apache.jmeter.images.

getTimers

java.util.Vector getTimers()
Creates the vector of timer plugins.

getVisualisers

java.util.Vector getVisualisers()
Creates the vector of visualiser plugins.

createButton

javax.swing.JButton createButton(java.lang.String name)
Create the Netscape style button

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

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 The Java Apache Project