|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A WorkUnit is the basic thing that a client processes.
It carries the data from client to server and from server to client.
The lifecycle of a WorkUnit is thus:
WorkUnit is 'minted' by the Factorisation system.
Sent to distribute.server
Sent to client
client calls run()
client sends it the the server
server returns it to the client
Note that HOFunctions.map may be used to create the WorkUnits.
WorkUnits deal with common data themselves.
| Method Summary | |
int |
cost()
Guess how long this workunit will take to run, in ms on a midrange machine |
void |
generateHashCode()
WHAT DOES THIS DO? WHY? - pw |
boolean |
hasRun()
Returns true iff run has completed on this workUnit. |
void |
run(lima.storage.Cache c)
Start processing this WorkUnit. |
int |
runtime()
How long this WorkUnit took to run in ms. |
| Method Detail |
public void run(lima.storage.Cache c)
public int cost()
public int runtime()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - iff run has not been called.public boolean hasRun()
public void generateHashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||