Package com.morpheusdata.model
Class ComputeStats
java.lang.Object
com.morpheusdata.model.ComputeStats
Representation of the compute system metrics for a Morpheus ComputeServer object.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe cpu usage as a percentageThe max memory available in bytesThe max storage available in bytesThe used memory in bytesThe used storage in bytesvoid
setCpuUsage
(Double cpuUsage) Set the cpu usage as a percentage (0.0-100.0)void
setMaxMemory
(Long maxMemory) Set the max memory available in bytesvoid
setMaxStorage
(Long maxStorage) Set the max storage available in bytesvoid
setUsedMemory
(Long usedMemory) Set the used memory in bytesvoid
setUsedStorage
(Long usedStorage) Set the used storage in bytes
-
Field Details
-
maxMemory
-
usedMemory
-
maxStorage
-
usedStorage
-
cpuUsage
-
-
Constructor Details
-
ComputeStats
public ComputeStats()
-
-
Method Details
-
getMaxMemory
The max memory available in bytes- Returns:
- max memory in bytes
-
setMaxMemory
Set the max memory available in bytes- Parameters:
maxMemory
- max memory available in bytes
-
getUsedMemory
The used memory in bytes- Returns:
- used memory in bytes
-
setUsedMemory
Set the used memory in bytes- Parameters:
usedMemory
- used memory in bytes
-
getMaxStorage
The max storage available in bytes- Returns:
- max storage in bytes
-
setMaxStorage
Set the max storage available in bytes- Parameters:
maxStorage
- max storage available in bytes
-
getUsedStorage
The used storage in bytes- Returns:
- used storage
-
setUsedStorage
Set the used storage in bytes- Parameters:
usedStorage
- used storage in bytes
-
getCpuUsage
The cpu usage as a percentage- Returns:
- cpu usage
-
setCpuUsage
Set the cpu usage as a percentage (0.0-100.0)- Parameters:
cpuUsage
- cpu usage as a percentage
-