Class ComputeStats

java.lang.Object
com.morpheusdata.model.ComputeStats

public class ComputeStats extends Object
Representation of the compute system metrics for a Morpheus ComputeServer object.
  • Field Details

    • maxMemory

      protected Long maxMemory
    • usedMemory

      protected Long usedMemory
    • maxStorage

      protected Long maxStorage
    • usedStorage

      protected Long usedStorage
    • cpuUsage

      protected Double cpuUsage
  • Constructor Details

    • ComputeStats

      public ComputeStats()
  • Method Details

    • getMaxMemory

      public Long getMaxMemory()
      The max memory available in bytes
      Returns:
      max memory in bytes
    • setMaxMemory

      public void setMaxMemory(Long maxMemory)
      Set the max memory available in bytes
      Parameters:
      maxMemory - max memory available in bytes
    • getUsedMemory

      public Long getUsedMemory()
      The used memory in bytes
      Returns:
      used memory in bytes
    • setUsedMemory

      public void setUsedMemory(Long usedMemory)
      Set the used memory in bytes
      Parameters:
      usedMemory - used memory in bytes
    • getMaxStorage

      public Long getMaxStorage()
      The max storage available in bytes
      Returns:
      max storage in bytes
    • setMaxStorage

      public void setMaxStorage(Long maxStorage)
      Set the max storage available in bytes
      Parameters:
      maxStorage - max storage available in bytes
    • getUsedStorage

      public Long getUsedStorage()
      The used storage in bytes
      Returns:
      used storage
    • setUsedStorage

      public void setUsedStorage(Long usedStorage)
      Set the used storage in bytes
      Parameters:
      usedStorage - used storage in bytes
    • getCpuUsage

      public Double getCpuUsage()
      The cpu usage as a percentage
      Returns:
      cpu usage
    • setCpuUsage

      public void setCpuUsage(Double cpuUsage)
      Set the cpu usage as a percentage (0.0-100.0)
      Parameters:
      cpuUsage - cpu usage as a percentage