|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel org.apache.jmeter.gui.AbstractJMeterGuiComponent org.apache.jmeter.visualizers.gui.AbstractListenerGui org.apache.jmeter.visualizers.gui.AbstractVisualizer org.apache.jmeter.visualizers.MonitorHealthVisualizer
public class MonitorHealthVisualizer
For performance reasons, I am using tabs for the visualizers. Since a visualizer is heavy weight, I don not want to have two separate result collectors rather the same information. Instead, I would rather have the visualizer be the container for the data and simply pass the data to child JComponents. In the future, we may want to add email alerts as a third tab.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class org.apache.jmeter.visualizers.gui.AbstractVisualizer |
---|
collector, isStats |
Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent |
---|
namePanel |
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 | |
---|---|
MonitorHealthVisualizer()
Constructor for the GraphVisualizer object. |
Method Summary | |
---|---|
void |
add(SampleResult res)
Because of the unique requirements of a monitor We have to handle the results differently than normal GUI components. |
void |
clearData()
Clears the MonitorAccumModel. |
void |
configure(TestElement el)
A newly created gui component can be initialized with the contents of a Test Element object by calling this method. |
Image |
getImage()
|
String |
getLabelResource()
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. |
void |
itemStateChanged(ItemEvent e)
|
void |
modifyTestElement(TestElement c)
GUI components are responsible for populating TestElements they create with the data currently held in the GUI components. |
void |
updateGui()
|
void |
updateGui(Sample s)
|
Methods inherited from class org.apache.jmeter.visualizers.gui.AbstractVisualizer |
---|
clearGui, configureTestElement, createTestElement, getErrorLoggingCheckbox, getFile, getFilePanel, getModel, isStats, makeTitlePanel, setFile, setModel, stateChanged |
Methods inherited from class org.apache.jmeter.visualizers.gui.AbstractListenerGui |
---|
createPopupMenu, getMenuCategories |
Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent |
---|
configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, setComment, setEnabled, setName |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MonitorHealthVisualizer()
Method Detail |
---|
public void configure(TestElement el)
AbstractJMeterGuiComponent
AbstractJMeterGuiComponent provides a partial implementation of this method, setting the name of the component and its enabled status. Subclasses should override this method, performing their own configuration as needed, but also calling this super-implementation.
configure
in interface JMeterGUIComponent
configure
in class AbstractVisualizer
el
- the TestElement to configurepublic void modifyTestElement(TestElement c)
JMeterGUIComponent
modifyTestElement
in interface JMeterGUIComponent
modifyTestElement
in class AbstractVisualizer
c
- the TestElement to modifypublic String getLabelResource()
JMeterGUIComponent
getLabelResource
in interface JMeterGUIComponent
public void add(SampleResult res)
add
in interface Visualizer
public Image getImage()
getImage
in interface ImageVisualizer
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void updateGui()
updateGui
in interface GraphListener
public void updateGui(Sample s)
updateGui
in interface GraphListener
public void clearData()
clearData
in interface Clearable
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |