public class WorkTracker extends Executable
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_TASK_WAIT_SECS
Wait one minute maximum for tasks to complete
|
| Constructor and Description |
|---|
WorkTracker()
Create WorkTracker object
|
WorkTracker(String taskName)
Create WorkTracker object
|
| Modifier and Type | Method and Description |
|---|---|
WorkStatus |
getStatus()
Returns current work status
|
void |
setStatus(WorkStatus status)
Set work status
|
WorkStatus |
waitForTask(WorkTracker workTracker)
Wait for currently executing persistence unit task to complete
|
WorkStatus |
waitForTask(WorkTracker workTracker,
int timeoutSecs)
Wait up to specified number of seconds for currently executing persistence unit task to complete
|
waitForTaskpublic static final int MAX_TASK_WAIT_SECS
public WorkTracker()
public WorkTracker(String taskName)
taskName - public WorkStatus getStatus()
getStatus in class ExecutableExecutable.getStatus()public void setStatus(WorkStatus status)
status - WorkStatuspublic WorkStatus waitForTask(WorkTracker workTracker)
workTracker - WorkTracker object used to monitor taskpublic WorkStatus waitForTask(WorkTracker workTracker, int timeoutSecs)
workTracker - WorkTracker object used to monitor tasktimeoutSecs - intThis documentation is licensed by Andrew Bowley under the GPLv3 License.