| java.lang.Object org.apache.jmeter.visualizers.MonitorAccumModel
MonitorAccumModel | public MonitorAccumModel()(Code) | | |
addListener | public void addListener(MonitorListener listener)(Code) | | Add a listener. When samples are added, the class will notify the
listener of the change.
Parameters: listener - |
addSample | public void addSample(MonitorModel model)(Code) | | Method will look up the server in the map. The MonitorModel will be added
to an existing list, or a new one will be created.
Parameters: model - |
addSample | public void addSample(SampleResult sample)(Code) | | Method will try to parse the response data. If the request was a monitor
request, but the response was incomplete, bad or the server refused the
connection, we will set the server's health to "dead". If the request was
not a monitor sample, the method will ignore it.
Parameters: sample - |
clearData | public void clearData()(Code) | | Clears everything except the listener. Do not clear the listeners. If we
clear listeners, subsequent "run" will not notify the gui of data
changes.
|
createNewMonitorModel | public MonitorModel createNewMonitorModel(URL url)(Code) | | Method will return a new MonitorModel object with the given URL. This is
used when the server fails to respond fully, or is dead.
Parameters: url - new MonitorModel |
getAllSamples | public List getAllSamples(String url)(Code) | | Get all MonitorModels matching the URL.
Parameters: url - list |
getBufferSize | public int getBufferSize()(Code) | | |
getLastSample | public MonitorModel getLastSample()(Code) | | Added this method we that we can save the calculated stats.
current sample |
noResponse | public void noResponse(URL url)(Code) | | If there is no response from the server, we create a new MonitorStats
object with the current timestamp and health "dead".
Parameters: url - |
notifyListeners | public void notifyListeners(MonitorModel model)(Code) | | notify the listeners with the MonitorModel object.
Parameters: model - |
setBufferSize | public void setBufferSize(int buffer)(Code) | | |
|
|