Package org.apache.jmeter.visualizers
Class MonitorModel
- java.lang.Object
-
- org.apache.jmeter.visualizers.MonitorModel
-
- All Implemented Interfaces:
Serializable,Cloneable,Clearable
public class MonitorModel extends Object implements Clearable, Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MonitorModel()MonitorModel(MonitorStats stat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearData()clear will create a new MonitorStats object.Objectclone()a clone method is provided for convienance.MonitorStatscloneMonitorStats()a clone method to clone the statsintgetCpuload()intgetHealth()StringgetHost()intgetLoad()intgetMemload()StringgetPort()StringgetProtocol()intgetThreadload()longgetTimestamp()StringgetTimestampString()Method will return a formatted date using SimpleDateFormat.StringgetURL()StringtoString()Method is used by DefaultMutableTreeNode to get the label for the node.
-
-
-
Constructor Detail
-
MonitorModel
public MonitorModel()
-
MonitorModel
public MonitorModel(MonitorStats stat)
-
-
Method Detail
-
getHealth
public int getHealth()
-
getLoad
public int getLoad()
-
getCpuload
public int getCpuload()
-
getMemload
public int getMemload()
-
getThreadload
public int getThreadload()
-
getHost
public String getHost()
-
getPort
public String getPort()
-
getProtocol
public String getProtocol()
-
getTimestamp
public long getTimestamp()
-
getURL
public String getURL()
-
getTimestampString
public String getTimestampString()
Method will return a formatted date using SimpleDateFormat.- Returns:
- String
-
toString
public String toString()
Method is used by DefaultMutableTreeNode to get the label for the node.
-
clearData
public void clearData()
clear will create a new MonitorStats object.
-
clone
public Object clone()
a clone method is provided for convienance. In some cases, it may be desirable to clone the object.
-
cloneMonitorStats
public MonitorStats cloneMonitorStats()
a clone method to clone the stats- Returns:
- new instance of the class
-
-