public final class TaskDescription extends Object implements Serializable
JobMasterService.TaskService.requestTask(),
Serialized Form| Constructor and Description |
|---|
TaskDescription(UUID jobId,
int taskId,
Object task)
Initializes the task description.
|
| Modifier and Type | Method and Description |
|---|---|
UUID |
getJobId()
Gets the
UUID of the job whose TaskWorker
should perform this task. |
ca.eandb.util.rmi.Serialized<Object> |
getTask()
Gets the
Object describing the task to be performed. |
int |
getTaskId()
The ID of the task to be performed.
|
public TaskDescription(UUID jobId, int taskId, Object task)
jobId - The UUID of the job that the task is for.taskId - The ID of the task to be performed.task - An Object describing the task to be performed.
This should be passed to TaskWorker.performTask.TaskWorker.performTask(Object, ca.eandb.util.progress.ProgressMonitor)public ca.eandb.util.rmi.Serialized<Object> getTask()
Object describing the task to be performed. This
should be passed to TaskWorker.performTask for the
TaskWorker corresponding to the job with the
UUID given by getJobId(). The TaskWorker
may be obtained by calling TaskService.getTaskWorker(UUID).Object describing the task to be performed.getJobId(),
TaskWorker.performTask(Object, ca.eandb.util.progress.ProgressMonitor),
TaskService.getTaskWorker(UUID)public UUID getJobId()
UUID of the job whose TaskWorker
should perform this task. Call TaskService.getTaskWorker(UUID)
to get the TaskWorker to use to perform this task.UUID of the job that this task is associated
with.TaskService.getTaskWorker(UUID)public int getTaskId()
JobMasterService.submitTaskResults when submitting the
results of this task.TaskService.submitTaskResults(UUID, int, Serialized)Copyright © 2016. All rights reserved.