Package org.apache.jmeter.visualizers
Class MonitorStats
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.visualizers.MonitorStats
- All Implemented Interfaces:
Serializable
,Cloneable
,Searchable
,TestElement
- See Also:
-
Field Summary
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
ConstructorsConstructorDescriptionMonitorStats
(int health, int load, int cpuload, int memload, int threadload, String host, String port, String protocol, long time) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionint
int
getHost()
int
getLoad()
int
getPort()
int
long
getURL()
For convienance, this method returns the protocol, host and port as a URL.void
setCpuLoad
(int load) void
setHealth
(int health) void
void
setLoad
(int load) void
setMemLoad
(int load) void
void
setProtocol
(String protocol) void
setThreadLoad
(int load) void
setTimeStamp
(long time) Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
-
Constructor Details
-
MonitorStats
public MonitorStats() -
MonitorStats
public MonitorStats(int health, int load, int cpuload, int memload, int threadload, String host, String port, String protocol, long time) Default constructor- Parameters:
health
- Health of the server. Has to be one ofHEALTHY
,ACTIVE
,WARNING
orDEAD
load
- load of the server as integer from a range in between 1 and 100cpuload
- cpu load of the server as integer from range between 1 and 100memload
- load of the server as integer from a range in between 1 and 100threadload
- thread load of the server as an integer from a range in between 1 and 100host
- name of the host from which the status was takenport
- port from which the status was takenprotocol
- over which the status was takentime
- time in milliseconds when this status was created
-
-
Method Details
-
getURL
For convienance, this method returns the protocol, host and port as a URL.- Returns:
- protocol://host:port
-
setHealth
public void setHealth(int health) -
setLoad
public void setLoad(int load) -
setCpuLoad
public void setCpuLoad(int load) -
setMemLoad
public void setMemLoad(int load) -
setThreadLoad
public void setThreadLoad(int load) -
setHost
-
setPort
-
setProtocol
-
setTimeStamp
public void setTimeStamp(long time) -
getHealth
public int getHealth() -
getLoad
public int getLoad() -
getCpuLoad
public int getCpuLoad() -
getMemLoad
public int getMemLoad() -
getThreadLoad
public int getThreadLoad() -
getHost
-
getPort
-
getProtocol
-
getTimeStamp
public long getTimeStamp()
-