Package org.corpus_tools.pepper.common
Class PepperUtil.PepperJobReporter
- java.lang.Object
-
- java.lang.Thread
-
- org.corpus_tools.pepper.common.PepperUtil.PepperJobReporter
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- PepperUtil
public static class PepperUtil.PepperJobReporter extends Thread
Prints the status of the passedPepperJobobject, until {@link #setStop(Boolean#TRUE)} was called.- Author:
- florian
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description PepperJobReporter(PepperJob pepperJob)Sets thePepperJobobject, which is observedPepperJobReporter(PepperJob pepperJob, int interval)Sets thePepperJobobject, which is observed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetInterval()Returns the interval in which the status is printedPepperJobgetPepperJob()Returns thePepperJobobject, which is observedbooleanisStop()Returns, ifPepperJobstill has to be observedvoidrun()voidsetStop(boolean stop)Sets ifPepperJobstill has to be observed-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
getInterval
public int getInterval()
Returns the interval in which the status is printed- Returns:
-
getPepperJob
public PepperJob getPepperJob()
Returns thePepperJobobject, which is observed- Returns:
-
isStop
public boolean isStop()
Returns, ifPepperJobstill has to be observed
-
setStop
public void setStop(boolean stop)
Sets ifPepperJobstill has to be observed- Parameters:
stop-
-
-