@Deprecated public class MonitorStats extends AbstractTestElement implements Serializable
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
MonitorStats()
Deprecated.
|
MonitorStats(int health,
int load,
int cpuload,
int memload,
int threadload,
String host,
String port,
String protocol,
long time)
Deprecated.
Default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getCpuLoad()
Deprecated.
|
int |
getHealth()
Deprecated.
|
String |
getHost()
Deprecated.
|
int |
getLoad()
Deprecated.
|
int |
getMemLoad()
Deprecated.
|
String |
getPort()
Deprecated.
|
String |
getProtocol()
Deprecated.
|
int |
getThreadLoad()
Deprecated.
|
long |
getTimeStamp()
Deprecated.
|
String |
getURL()
Deprecated.
For convienance, this method returns the protocol, host and port as a
URL.
|
void |
setCpuLoad(int load)
Deprecated.
|
void |
setHealth(int health)
Deprecated.
|
void |
setHost(String host)
Deprecated.
|
void |
setLoad(int load)
Deprecated.
|
void |
setMemLoad(int load)
Deprecated.
|
void |
setPort(String port)
Deprecated.
|
void |
setProtocol(String protocol)
Deprecated.
|
void |
setThreadLoad(int load)
Deprecated.
|
void |
setTimeStamp(long time)
Deprecated.
|
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
public MonitorStats()
public MonitorStats(int health, int load, int cpuload, int memload, int threadload, String host, String port, String protocol, long time)
health
- Health of the server. Has to be one of HEALTHY
, ACTIVE
, WARNING
or DEAD
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 createdpublic String getURL()
public void setHealth(int health)
public void setLoad(int load)
public void setCpuLoad(int load)
public void setMemLoad(int load)
public void setThreadLoad(int load)
public void setHost(String host)
public void setPort(String port)
public void setProtocol(String protocol)
public void setTimeStamp(long time)
public int getHealth()
public int getLoad()
public int getCpuLoad()
public int getMemLoad()
public int getThreadLoad()
public String getHost()
public String getPort()
public String getProtocol()
public long getTimeStamp()
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.