|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.visualizers.MonitorAccumModel
public class MonitorAccumModel
Constructor Summary | |
---|---|
MonitorAccumModel()
|
Method Summary | |
---|---|
void |
addListener(MonitorListener listener)
Add a listener. |
void |
addSample(MonitorModel model)
Method will look up the server in the map. |
void |
addSample(SampleResult sample)
Method will try to parse the response data. |
void |
clearData()
Clears everything except the listener. |
MonitorModel |
createNewMonitorModel(URL url)
Method will return a new MonitorModel object with the given URL. |
List<MonitorModel> |
getAllSamples(String url)
Get all MonitorModels matching the URL. |
int |
getBufferSize()
|
MonitorModel |
getLastSample()
Added this method we that we can save the calculated stats. |
MonitorModel |
getSample(String url)
Get the MonitorModel matching the url. |
void |
noResponse(URL url)
If there is no response from the server, we create a new MonitorStats object with the current timestamp and health "dead". |
void |
notifyListeners(MonitorModel model)
notify the listeners with the MonitorModel object. |
void |
setBufferSize(int buffer)
|
void |
setPrefix(String prefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonitorAccumModel()
Method Detail |
---|
public int getBufferSize()
public void setBufferSize(int buffer)
public void setPrefix(String prefix)
public MonitorModel getLastSample()
public void addSample(MonitorModel model)
model
- the MonitorModel
to be addedpublic List<MonitorModel> getAllSamples(String url)
url
- to be matched against
public MonitorModel getSample(String url)
url
- to be matched against
MonitorModel
registered for this
url
public void addSample(SampleResult sample)
sample
- SampleResult
with the result of the status requestpublic void noResponse(URL url)
url
- URL from where the status should have comepublic MonitorModel createNewMonitorModel(URL url)
url
- URL from where the status should have come
public void clearData()
clearData
in interface Clearable
public void notifyListeners(MonitorModel model)
model
- the MonitorModel
that should be sent to the listenerspublic void addListener(MonitorListener listener)
listener
- the MonitorListener
that should be added
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |