public class JobMonitor
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
JobMonitor(JobRunner runner)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkLastError()
check the last error
|
static void |
clearLastError()
clear the last exception
|
static void |
recordLastError(java.lang.Throwable error)
allow an exception to be recorded
|
void |
run()
Monitor the job
|
void |
waitFor()
wait for the monitor to finish
|
public JobMonitor(JobRunner runner)
runner - The running jobpublic void waitFor()
public void run()
run in interface java.lang.Runnablepublic static void checkLastError()
throws java.lang.Exception
java.lang.Exception - the last exceptionpublic static void clearLastError()
public static void recordLastError(java.lang.Throwable error)
error - the error to recordstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.