Class SystemResourceInfo


  • public class SystemResourceInfo
    extends Object
    Class to represent system resources (CPU, Memory, etc) for an instance.
    • Constructor Detail

      • SystemResourceInfo

        public SystemResourceInfo()
        Constructor that initializes the values from reading system properties.
      • SystemResourceInfo

        public SystemResourceInfo​(Map<String,​String> map)
        Constructor of class from map.
        Parameters:
        map - Map containing values for member variables.
    • Method Detail

      • getNumCores

        public int getNumCores()
      • getTotalMemoryMB

        public long getTotalMemoryMB()
      • getMaxHeapSizeMB

        public long getMaxHeapSizeMB()
      • toMap

        public Map<String,​String> toMap()
        Returns a map containing names of fields along with their String values.
        Returns:
        Map of field names to values