Apache JMeter
1.9

org.apache.jmeter.visualizers
Class StatVisualizerModel

java.lang.Object
  |
  +--org.apache.jmeter.visualizers.StatVisualizerModel
All Implemented Interfaces:
Clearable

public class StatVisualizerModel
extends Object
implements Clearable

Title: StatVisualizerModel.java Description: Aggregrate Table-Based Reporting Model for JMeter Props to the people who've done the other visualizers ahead of me (Stefano Mazzocchi), who I borrowed code from to start me off (and much code may still exist).. Thank you! Copyright: Copyright (c) 2001 Company: Apache Foundation

Version:
1.0
Author:
James Boutcher

Nested Class Summary
static class StatVisualizerModel.Test
           
 
Constructor Summary
StatVisualizerModel()
          Default Constuctor
 
Method Summary
 void addAccumListener(AccumListener listener)
           
 void addGraphListener(GraphListener listener)
          Registers a listener (a visualizer, graph, etc) to this model.
 void addNewSample(SampleResult res)
          !
 void clear()
          Reset everything we can in the model.
protected  void fireDataChanged()
          Called when the model changes - then we call out to all registered listeners and tell them to update themselves.
protected  void fireDataChanged(RunningSample s)
           
 Class getGuiClass()
          Gets the GuiClass attribute of the StatVisualizerModel object
 String getName()
          Gets the Name attribute of the StatVisualizerModel object
 RunningSample getRunningSample(int index)
           
 RunningSample getRunningSample(String label)
           
 int getRunningSampleCount()
           
 RunningSample getRunningSampleTotal()
           
 void setName(String name)
          Sets the Name attribute of the StatVisualizerModel object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatVisualizerModel

public StatVisualizerModel()
Default Constuctor

Method Detail

setName

public void setName(String name)
Sets the Name attribute of the StatVisualizerModel object

Parameters:
name - The new Name value

getGuiClass

public Class getGuiClass()
Gets the GuiClass attribute of the StatVisualizerModel object

Returns:
The GuiClass value

getName

public String getName()
Gets the Name attribute of the StatVisualizerModel object

Returns:
The Name value

addGraphListener

public void addGraphListener(GraphListener listener)
Registers a listener (a visualizer, graph, etc) to this model. This will allow the model to fire GUI updates to anyone when data changes, etc.

Parameters:
listener - !ToDo

addAccumListener

public void addAccumListener(AccumListener listener)

getRunningSampleCount

public int getRunningSampleCount()

getRunningSample

public RunningSample getRunningSample(int index)

getRunningSample

public RunningSample getRunningSample(String label)

getRunningSampleTotal

public RunningSample getRunningSampleTotal()

addNewSample

public void addNewSample(SampleResult res)
!ToDo

Parameters:
res - !ToDo

clear

public void clear()
Reset everything we can in the model.

Specified by:
clear in interface Clearable

fireDataChanged

protected void fireDataChanged()
Called when the model changes - then we call out to all registered listeners and tell them to update themselves.


fireDataChanged

protected void fireDataChanged(RunningSample s)

Apache JMeter
1.9

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