Class MonitoringData


  • public class MonitoringData
    extends java.lang.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

      • getExecutionCounterPerModuleMap

        public ej.basictool.map.PackedMap<ej.kf.Module,​MonitoringData.ExecutionCounter> getExecutionCounterPerModuleMap()
        Gets the execution counter per module map
        Returns:
        the execution counter map
      • getRamUsagePerModuleMap

        public ej.basictool.map.PackedMap<ej.kf.Module,​java.lang.Long> getRamUsagePerModuleMap()
        Gets the ram usage per module map
        Returns:
        the ram usage map
      • getOriginalQuotaPerModuleMap

        public ej.basictool.map.PackedMap<ej.kf.Module,​java.lang.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