Class AbstractRunner

java.lang.Object
cz.metacentrum.perun.taskslib.runners.impl.AbstractRunner
All Implemented Interfaces:
Runner, Runnable

public abstract class AbstractRunner extends Object implements Runner
Extensible stub for all Runners (periodic threads used in dispatcher). It handles "stop" flag, so thread should know, when to stop and can be stopped from outside.
Author:
David Ĺ arman
  • Constructor Details

    • AbstractRunner

      public AbstractRunner()
  • Method Details

    • shouldStop

      public boolean shouldStop()
      Description copied from interface: Runner
      Return TRUE if Runner thread processing should stop.
      Specified by:
      shouldStop in interface Runner
      Returns:
      TRUE if should stop / FALSE otherwise
    • stop

      public void stop()
      Description copied from interface: Runner
      Stop Runner thread (it's not interrupt - thread stops by own implementation in run() method).
      Specified by:
      stop in interface Runner