Class PepperUtil.PepperJobReporter

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    PepperUtil

    public static class PepperUtil.PepperJobReporter
    extends Thread
    Prints the status of the passed PepperJob object, until {@link #setStop(Boolean#TRUE)} was called.
    Author:
    florian
    • Constructor Detail

      • PepperJobReporter

        public PepperJobReporter​(PepperJob pepperJob,
                                 int interval)
        Sets the PepperJob object, which is observed
        Parameters:
        pepperJob - the job to observe
        interval - the interval in which the status is printed
      • PepperJobReporter

        public PepperJobReporter​(PepperJob pepperJob)
        Sets the PepperJob object, which is observed
        Parameters:
        pepperJob - the job to observe
    • Method Detail

      • getInterval

        public int getInterval()
        Returns the interval in which the status is printed
        Returns:
      • getPepperJob

        public PepperJob getPepperJob()
        Returns the PepperJob object, which is observed
        Returns:
      • isStop

        public boolean isStop()
        Returns, if PepperJob still has to be observed
      • setStop

        public void setStop​(boolean stop)
        Sets if PepperJob still has to be observed
        Parameters:
        stop -
      • run

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