Package com.morpheusdata.model
Class ComputeStats
- java.lang.Object
-
- com.morpheusdata.model.ComputeStats
-
public class ComputeStats extends java.lang.Object
Representation of the compute system metrics for a Morpheus ComputeServer object.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Double
cpuUsage
protected java.lang.Long
maxMemory
protected java.lang.Long
maxStorage
protected java.lang.Long
usedMemory
protected java.lang.Long
usedStorage
-
Constructor Summary
Constructors Constructor Description ComputeStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
getCpuUsage()
The cpu usage as a percentagejava.lang.Long
getMaxMemory()
The max memory available in bytesjava.lang.Long
getMaxStorage()
The max storage available in bytesjava.lang.Long
getUsedMemory()
The used memory in bytesjava.lang.Long
getUsedStorage()
The used storage in bytesvoid
setCpuUsage(java.lang.Double cpuUsage)
Set the cpu usage as a percentage (0.0-100.0)void
setMaxMemory(java.lang.Long maxMemory)
Set the max memory available in bytesvoid
setMaxStorage(java.lang.Long maxStorage)
Set the max storage available in bytesvoid
setUsedMemory(java.lang.Long usedMemory)
Set the used memory in bytesvoid
setUsedStorage(java.lang.Long usedStorage)
Set the used storage in bytes
-
-
-
Method Detail
-
getMaxMemory
public java.lang.Long getMaxMemory()
The max memory available in bytes- Returns:
- max memory in bytes
-
setMaxMemory
public void setMaxMemory(java.lang.Long maxMemory)
Set the max memory available in bytes- Parameters:
maxMemory
- max memory available in bytes
-
getUsedMemory
public java.lang.Long getUsedMemory()
The used memory in bytes- Returns:
- used memory in bytes
-
setUsedMemory
public void setUsedMemory(java.lang.Long usedMemory)
Set the used memory in bytes- Parameters:
usedMemory
- used memory in bytes
-
getMaxStorage
public java.lang.Long getMaxStorage()
The max storage available in bytes- Returns:
- max storage in bytes
-
setMaxStorage
public void setMaxStorage(java.lang.Long maxStorage)
Set the max storage available in bytes- Parameters:
maxStorage
- max storage available in bytes
-
getUsedStorage
public java.lang.Long getUsedStorage()
The used storage in bytes- Returns:
- used storage
-
setUsedStorage
public void setUsedStorage(java.lang.Long usedStorage)
Set the used storage in bytes- Parameters:
usedStorage
- used storage in bytes
-
getCpuUsage
public java.lang.Double getCpuUsage()
The cpu usage as a percentage- Returns:
- cpu usage
-
setCpuUsage
public void setCpuUsage(java.lang.Double cpuUsage)
Set the cpu usage as a percentage (0.0-100.0)- Parameters:
cpuUsage
- cpu usage as a percentage
-
-