Class HealthLoggerTimerTask

  • All Implemented Interfaces:
    java.lang.Runnable

    public class HealthLoggerTimerTask
    extends ej.bon.TimerTask
    Log CPU usage periodically

    This logger generate the following log:

    healthloggertimertask INFO: ---------------------------- healthloggertimertask INFO: Health Monitoring: healthloggertimertask INFO: ---------------------------- healthloggertimertask INFO: Name %CPU %MEM MEM(KB) healthloggertimertask INFO: App1 30.46 0.37 3.28 healthloggertimertask INFO: App2 36.66 1.22 10.68 healthloggertimertask INFO: GREEN 0.14 1.94 17.04 healthloggertimertask INFO: %CPU: 67.25, KB Mem: 878 total, 847 free, 31.00 used healthloggertimertask INFO: Apps: 2

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static float ONE_KB  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class ej.bon.TimerTask

        cancel, scheduledExecutionTime, uncaughtException
      • Methods inherited from class java.lang.Object

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

      • HealthLoggerTimerTask

        public HealthLoggerTimerTask​(HealthService healthMonitoringService)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class ej.bon.TimerTask