Apache JMeter
2.0.1.20050615

org.apache.jmeter.visualizers
Class MonitorPerformancePanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JSplitPane
                  extended byorg.apache.jmeter.visualizers.MonitorPerformancePanel
All Implemented Interfaces:
Accessible, Clearable, EventListener, ImageObserver, MenuContainer, MonitorListener, Serializable, TreeSelectionListener

public class MonitorPerformancePanel
extends JSplitPane
implements TreeSelectionListener, MonitorListener, Clearable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JSplitPane
JSplitPane.AccessibleJSplitPane
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String GRID_LABEL_ACTIVE
           
static String GRID_LABEL_BOTTOM
           
static String GRID_LABEL_DEAD
           
static String GRID_LABEL_HEALTHY
           
static String GRID_LABEL_MIDDLE
           
static String GRID_LABEL_TOP
           
static String GRID_LABEL_WARNING
           
static String LEGEND_HEALTH
           
static ImageIcon LEGEND_HEALTH_ICON
           
static String LEGEND_LOAD
           
static ImageIcon LEGEND_LOAD_ICON
           
static String LEGEND_MEM
           
static ImageIcon LEGEND_MEM_ICON
           
static String LEGEND_THREAD
           
static ImageIcon LEGEND_THREAD_ICON
           
static String PERF_TITLE
           
protected  Font plaintext
           
static String SERVER_TITLE
           
 
Fields inherited from class javax.swing.JSplitPane
BOTTOM, CONTINUOUS_LAYOUT_PROPERTY, continuousLayout, DIVIDER, DIVIDER_LOCATION_PROPERTY, DIVIDER_SIZE_PROPERTY, dividerSize, HORIZONTAL_SPLIT, LAST_DIVIDER_LOCATION_PROPERTY, lastDividerLocation, LEFT, leftComponent, ONE_TOUCH_EXPANDABLE_PROPERTY, oneTouchExpandable, orientation, ORIENTATION_PROPERTY, RESIZE_WEIGHT_PROPERTY, RIGHT, rightComponent, TOP, VERTICAL_SPLIT
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MonitorPerformancePanel()
          Deprecated. Only for use in unit testing
MonitorPerformancePanel(MonitorAccumModel model, MonitorGraph graph)
           
 
Method Summary
 void addSample(MonitorModel model)
          MonitorAccumModel will call this method to notify the component data has changed.
 void clear()
          clear will remove all child nodes from the ROOTNODE, clear the HashMap, update the graph and jpanel for the server tree.
 JPanel createLeftGridLabels()
          Method is responsible for creating the left grid labels.
 JPanel createLegend()
          Method will create the legends at the bottom of the performance tab explaining the meaning of each line.
 JPanel createRightGridLabels()
          Method is responsible for creating the grid labels on the right for "healthy" and "dead"
protected  void init()
          init() will create all the necessary swing panels, labels and icons for the performance panel.
 void valueChanged(TreeSelectionEvent e)
          When the user selects a different node in the tree, we get the selected node.
 
Methods inherited from class javax.swing.JSplitPane
addImpl, getAccessibleContext, getBottomComponent, getDividerLocation, getDividerSize, getLastDividerLocation, getLeftComponent, getMaximumDividerLocation, getMinimumDividerLocation, getOrientation, getResizeWeight, getRightComponent, getTopComponent, getUI, getUIClassID, isContinuousLayout, isOneTouchExpandable, isValidateRoot, paintChildren, paramString, remove, remove, removeAll, resetToPreferredSizes, setBottomComponent, setContinuousLayout, setDividerLocation, setDividerLocation, setDividerSize, setLastDividerLocation, setLeftComponent, setOneTouchExpandable, setOrientation, setResizeWeight, setRightComponent, setTopComponent, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintBorder, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEGEND_HEALTH

public static final String LEGEND_HEALTH

LEGEND_LOAD

public static final String LEGEND_LOAD

LEGEND_MEM

public static final String LEGEND_MEM

LEGEND_THREAD

public static final String LEGEND_THREAD

LEGEND_HEALTH_ICON

public static final ImageIcon LEGEND_HEALTH_ICON

LEGEND_LOAD_ICON

public static final ImageIcon LEGEND_LOAD_ICON

LEGEND_MEM_ICON

public static final ImageIcon LEGEND_MEM_ICON

LEGEND_THREAD_ICON

public static final ImageIcon LEGEND_THREAD_ICON

GRID_LABEL_TOP

public static final String GRID_LABEL_TOP

GRID_LABEL_MIDDLE

public static final String GRID_LABEL_MIDDLE

GRID_LABEL_BOTTOM

public static final String GRID_LABEL_BOTTOM

GRID_LABEL_HEALTHY

public static final String GRID_LABEL_HEALTHY

GRID_LABEL_ACTIVE

public static final String GRID_LABEL_ACTIVE

GRID_LABEL_WARNING

public static final String GRID_LABEL_WARNING

GRID_LABEL_DEAD

public static final String GRID_LABEL_DEAD

PERF_TITLE

public static final String PERF_TITLE

SERVER_TITLE

public static final String SERVER_TITLE

plaintext

protected Font plaintext
Constructor Detail

MonitorPerformancePanel

public MonitorPerformancePanel()
Deprecated. Only for use in unit testing


MonitorPerformancePanel

public MonitorPerformancePanel(MonitorAccumModel model,
                               MonitorGraph graph)
Method Detail

init

protected void init()
init() will create all the necessary swing panels, labels and icons for the performance panel.


createLegend

public JPanel createLegend()
Method will create the legends at the bottom of the performance tab explaining the meaning of each line.

Returns:
JPanel

createLeftGridLabels

public JPanel createLeftGridLabels()
Method is responsible for creating the left grid labels.

Returns:
JPanel

createRightGridLabels

public JPanel createRightGridLabels()
Method is responsible for creating the grid labels on the right for "healthy" and "dead"

Returns:
JPanel

addSample

public void addSample(MonitorModel model)
MonitorAccumModel will call this method to notify the component data has changed.

Specified by:
addSample in interface MonitorListener

valueChanged

public void valueChanged(TreeSelectionEvent e)
When the user selects a different node in the tree, we get the selected node. From the node, we get the UserObject used to create the treenode in the constructor.

Specified by:
valueChanged in interface TreeSelectionListener

clear

public void clear()
clear will remove all child nodes from the ROOTNODE, clear the HashMap, update the graph and jpanel for the server tree.

Specified by:
clear in interface Clearable

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.