Class MonitoringData


  • public class MonitoringData
    extends Object
    This class represents the data structure used to handle data for resource monitoring.
    • Constructor Detail

      • MonitoringData

        public MonitoringData​(boolean runGcBeforeCollecting)
        Instantiates a new MonitoringData object
        Parameters:
        runGcBeforeCollecting - boolean read from kernel properties to run GC before collecting monitoring data
    • Method Detail

      • getRamUsagePerModuleMap

        public PackedMap<Module,​Long> getRamUsagePerModuleMap()
        Gets the ram usage per module map
        Returns:
        the ram usage map
      • getOriginalQuotaPerModuleMap

        public PackedMap<Module,​Integer> getOriginalQuotaPerModuleMap()
        Gets the original quota per module map
        Returns:
        the original quota map
      • getTotalMemory

        public long getTotalMemory()
        Gets total memory value
        Returns:
        the total memory value
      • getMaxMemory

        public long getMaxMemory()
        Gets the max memory value
        Returns:
        the max memory value
      • getFreeMemory

        public long getFreeMemory()
        Gets the free memory value
        Returns:
        the free memory value