|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.tiling.computefarm.AbstractJob
An AbstractJob is a Job that provides some default implementation
and a few convenience methods for implementors of Job.
| Constructor Summary | |
AbstractJob()
|
|
| Method Summary | |
abstract void |
collectResults(net.jini.space.JavaSpace javaSpace)
When this method is invoked by the framework, the implementation of Job should take instances of ResultEntry
from the supplied JavaSpace
which have the same job ID as this Job. |
abstract void |
generateTasks(net.jini.space.JavaSpace javaSpace)
When this method is invoked by the framework, the implementation of Job should create instances of TaskEntry
and write them to the supplied JavaSpace. |
net.jini.id.Uuid |
getId()
|
protected void |
sendReloadClassesSignal(net.jini.space.JavaSpace javaSpace)
A convenience method for signalling all Workers that they should
reload their classes. |
protected java.io.Serializable |
takeResult(net.jini.space.JavaSpace javaSpace)
A convenience method taking results from the given JavaSpace. |
protected void |
writeTask(net.jini.space.JavaSpace javaSpace,
Task task)
A convenience method for writing the given task to the given JavaSpace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractJob()
| Method Detail |
public net.jini.id.Uuid getId()
getId in interface JobJob.public abstract void generateTasks(net.jini.space.JavaSpace javaSpace)
JobJob should create instances of TaskEntry
and write them to the supplied JavaSpace.
generateTasks in interface JobjavaSpace - public abstract void collectResults(net.jini.space.JavaSpace javaSpace)
JobJob should take instances of ResultEntry
from the supplied JavaSpace
which have the same job ID as this Job.
collectResults in interface JobjavaSpace -
protected void writeTask(net.jini.space.JavaSpace javaSpace,
Task task)
javaSpace - the JavaSpace that this Job is usingtask - the task to be written to the JavaSpaceprotected java.io.Serializable takeResult(net.jini.space.JavaSpace javaSpace)
javaSpace - the JavaSpace that this Job is using
protected void sendReloadClassesSignal(net.jini.space.JavaSpace javaSpace)
Workers that they should
reload their classes.
Exceptions are logged but otherwise ignored.
javaSpace - the JavaSpace that this Job is using
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||