org.apache.jmeter.visualizers

Class MonitorModel

Implemented Interfaces:
Clearable, Cloneable, Serializable

public class MonitorModel
extends Object
implements Clearable, Serializable, Cloneable

Constructor Summary

MonitorModel()
MonitorModel(MonitorStats stat)

Method Summary

void
clearData()
clear will create a new MonitorStats object.
Object
clone()
a clone method is provided for convienance.
MonitorStats
cloneMonitorStats()
a clone method to clone the stats
int
getCpuload()
int
getHealth()
String
getHost()
int
getLoad()
int
getMemload()
String
getPort()
String
getProtocol()
int
getThreadload()
long
getTimestamp()
String
getTimestampString()
Method will return a formatted date using SimpleDateFormat.
String
getURL()
String
toString()
Method is used by DefaultMutableTreeNode to get the label for the node.

Constructor Details

MonitorModel

public MonitorModel()

MonitorModel

public MonitorModel(MonitorStats stat)

Method Details

clearData

public void clearData()
clear will create a new MonitorStats object.
Specified by:
clearData in interface Clearable

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

getCpuload

public int getCpuload()

getHealth

public int getHealth()

getHost

public String getHost()

getLoad

public int getLoad()

getMemload

public int getMemload()

getPort

public String getPort()

getProtocol

public String getProtocol()

getThreadload

public int getThreadload()

getTimestamp

public long getTimestamp()

getTimestampString

public String getTimestampString()
Method will return a formatted date using SimpleDateFormat.
Returns:
String

getURL

public String getURL()

toString

public String toString()
Method is used by DefaultMutableTreeNode to get the label for the node.

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