public class SystemStatus extends Object implements Serializable, Cloneable
Represents CPU utilization and load average information for applications running in the specified environment.
Constructor and Description |
---|
SystemStatus() |
Modifier and Type | Method and Description |
---|---|
SystemStatus |
clone() |
boolean |
equals(Object obj) |
CPUUtilization |
getCPUUtilization()
Returns the value of the CPUUtilization property for this object.
|
List<Double> |
getLoadAverage()
Load average in the last 1-minute and 5-minute periods.
|
int |
hashCode() |
void |
setCPUUtilization(CPUUtilization cPUUtilization)
Sets the value of the CPUUtilization property for this object.
|
void |
setLoadAverage(Collection<Double> loadAverage)
Load average in the last 1-minute and 5-minute periods.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SystemStatus |
withCPUUtilization(CPUUtilization cPUUtilization)
Sets the value of the CPUUtilization property for this object.
|
SystemStatus |
withLoadAverage(Collection<Double> loadAverage)
Load average in the last 1-minute and 5-minute periods.
|
SystemStatus |
withLoadAverage(Double... loadAverage)
Load average in the last 1-minute and 5-minute periods.
|
public void setCPUUtilization(CPUUtilization cPUUtilization)
cPUUtilization
- The new value for the CPUUtilization property for this object.public CPUUtilization getCPUUtilization()
public SystemStatus withCPUUtilization(CPUUtilization cPUUtilization)
cPUUtilization
- The new value for the CPUUtilization property for this object.public List<Double> getLoadAverage()
Load average in the last 1-minute and 5-minute periods. For more information, see Operating System Metrics.
public void setLoadAverage(Collection<Double> loadAverage)
Load average in the last 1-minute and 5-minute periods. For more information, see Operating System Metrics.
loadAverage
- Load average in the last 1-minute and 5-minute periods. For more
information, see Operating System Metrics.public SystemStatus withLoadAverage(Double... loadAverage)
Load average in the last 1-minute and 5-minute periods. For more information, see Operating System Metrics.
NOTE: This method appends the values to the existing list (if
any). Use setLoadAverage(java.util.Collection)
or
withLoadAverage(java.util.Collection)
if you want to override
the existing values.
loadAverage
- Load average in the last 1-minute and 5-minute periods. For more
information, see Operating System Metrics.public SystemStatus withLoadAverage(Collection<Double> loadAverage)
Load average in the last 1-minute and 5-minute periods. For more information, see Operating System Metrics.
loadAverage
- Load average in the last 1-minute and 5-minute periods. For more
information, see Operating System Metrics.public String toString()
toString
in class Object
Object.toString()
public SystemStatus clone()
Copyright © 2015. All rights reserved.