public class JobControl
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Class and Description |
|---|---|
static class |
JobControl.ThreadState |
| Constructor and Description |
|---|
JobControl(java.lang.String groupName)
Construct a job control for a group of jobs.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addJob(ControlledJob aJob)
Add a new job.
|
void |
addJobCollection(java.util.Collection<ControlledJob> jobs)
Add a collection of jobs
|
boolean |
allFinished() |
java.util.List<ControlledJob> |
getFailedJobList() |
java.util.List<ControlledJob> |
getReadyJobsList() |
java.util.List<ControlledJob> |
getRunningJobList() |
java.util.List<ControlledJob> |
getSuccessfulJobList() |
JobControl.ThreadState |
getThreadState() |
java.util.List<ControlledJob> |
getWaitingJobList() |
void |
resume()
resume the suspended thread
|
void |
run()
The main loop for the thread.
|
void |
stop()
set the thread state to STOPPING so that the
thread will stop when it wakes up.
|
void |
suspend()
suspend the running thread
|
public JobControl(java.lang.String groupName)
groupName - a name identifying this grouppublic java.util.List<ControlledJob> getWaitingJobList()
public java.util.List<ControlledJob> getRunningJobList()
public java.util.List<ControlledJob> getReadyJobsList()
public java.util.List<ControlledJob> getSuccessfulJobList()
public java.util.List<ControlledJob> getFailedJobList()
public java.lang.String addJob(ControlledJob aJob)
aJob - the new jobpublic void addJobCollection(java.util.Collection<ControlledJob> jobs)
jobs - public JobControl.ThreadState getThreadState()
public void stop()
public void suspend()
public void resume()
public boolean allFinished()
public void run()
run in interface java.lang.RunnableCopyright © 2009 The Apache Software Foundation