public interface ParallelizableJob extends LifeCycleManageable, Serializable
| Modifier and Type | Method and Description |
|---|---|
Object |
getNextTask()
Gets the next task to be performed.
|
boolean |
isComplete()
Gets a value that indicates if this job is complete (i.e., if results
for all tasks have been submitted).
|
void |
setHostService(HostService host)
Sets the
HostService object that provides secure access
to the file system on the machine hosting this
ParallelizableJob. |
void |
submitTaskResults(Object task,
Object results,
ca.eandb.util.progress.ProgressMonitor monitor)
Submits the results of a task.
|
TaskWorker |
worker()
Gets the task worker to use to process the tasks of this job.
|
finish, initialize, restoreState, saveStatevoid setHostService(HostService host)
HostService object that provides secure access
to the file system on the machine hosting this
ParallelizableJob.host - The HostService to use.Object getNextTask() throws Exception
Object describing the next task to be
performed, or null if there are no remaining
tasks.Exception - If an error occurs performing the operation.void submitTaskResults(Object task, Object results, ca.eandb.util.progress.ProgressMonitor monitor) throws Exception
task - The Object describing the task for which
results are being submitted (must have been obtained from a
previous call to getNextTask().results - The Object containing the results of
a task.monitor - The ProgressMonitor to update with the
progress of this Job.Exception - If an error occurs performing the operation.getNextTask()boolean isComplete()
throws Exception
Exception - If an error occurs performing the operation.TaskWorker worker() throws Exception
Exception - If an error occurs performing the operation.Copyright © 2016. All rights reserved.