Class SystemLoadMonitor


  • public class SystemLoadMonitor
    extends Object
    This class monitors the system load and notifies the listeners accordingly
    Since:
    6.7.1
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • SystemLoadMonitor

        public SystemLoadMonitor()
    • Method Detail

      • getCpuLoad

        public int getCpuLoad()
        Retrieve the CPU load.
        Returns:
        current CPU load
      • isAverageCpuOverLoaded

        public boolean isAverageCpuOverLoaded()
        Check if the 'average' CPU load is over the limit defined in 'system.cpuload.max' config parameter.
        Returns:
        if the CPU is overloaded
      • stop

        public void stop()
      • start

        public void start()