|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Job
A job is a piece of computation intended for parallel mode execution and split into task objects.
Method Summary | |
---|---|
Identity |
getIdentity()
Get the universally unique identifier for job. |
JobDescriptor |
getJobDescriptor()
Get the JobDescriptor for the Job |
int |
getTotalTasks()
Get total amount of tasks the Job can be divided across |
JobResult |
process(net.jini.space.JavaSpace space,
net.jini.core.transaction.Transaction txn,
boolean batch)
Process the Job |
void |
setArguments(java.lang.Object[] args)
Provide an arguments for job |
Task[] |
split()
The implementation of Job should specify how to divide this job into tasks. |
Method Detail |
---|
JobResult process(net.jini.space.JavaSpace space, net.jini.core.transaction.Transaction txn, boolean batch) throws JobException
space
- A reference to a JavaSpace
service, must
not be null
txn
- An optional reference to a
Transaction
batch
- Whether or not the Job can be run in batch mode
JobException
- If errors occur processing the Job, throw a general
ExceptionTask[] split()
Task
objects. If the Job is not dividable, return a zero-length arrayvoid setArguments(java.lang.Object[] args)
args
- An array of String arguments the Job will process. Must not be
null
Identity getIdentity()
Identity
property
of the Jobint getTotalTasks()
JobDescriptor getJobDescriptor()
JobDescriptor
for the Job
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |