Class CPUWatcher

  • All Implemented Interfaces:
    Runnable

    public class CPUWatcher
    extends Thread
    It will check the CPU usage and if it is consistently above the threshold, it will execute the CPU watcher actions.
    • Constructor Detail

      • CPUWatcher

        public CPUWatcher​(String pid,
                          int threshold,
                          int retryCount)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread