Class 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 percentage
      java.lang.Long getMaxMemory()
      The max memory available in bytes
      java.lang.Long getMaxStorage()
      The max storage available in bytes
      java.lang.Long getUsedMemory()
      The used memory in bytes
      java.lang.Long getUsedStorage()
      The used storage in bytes
      void 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 bytes
      void setMaxStorage​(java.lang.Long maxStorage)
      Set the max storage available in bytes
      void setUsedMemory​(java.lang.Long usedMemory)
      Set the used memory in bytes
      void setUsedStorage​(java.lang.Long usedStorage)
      Set the used storage in bytes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • maxMemory

        protected java.lang.Long maxMemory
      • usedMemory

        protected java.lang.Long usedMemory
      • maxStorage

        protected java.lang.Long maxStorage
      • usedStorage

        protected java.lang.Long usedStorage
      • cpuUsage

        protected java.lang.Double cpuUsage
    • Constructor Detail

      • ComputeStats

        public ComputeStats()
    • 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