|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The client-server interface - a WorkUnitServer provides WorkUnits to the
clients that provide processing cycles. Once the client gets a handle to a
WorkUnitServer, it should do something like this: while(!bored) {
WorkUnit w = workunitserver. requestWorkUnit(); w.run(); workunitserver.
submitWorkUnit(w); }
| Method Summary | |
lima.distribution.WorkUnit |
requestWorkUnit()
Request a WorkUnit from the server. |
void |
submitWorkUnit(lima.distribution.WorkUnit u)
Submit a finished WorkUnit back to the server. |
| Method Detail |
public lima.distribution.WorkUnit requestWorkUnit()
throws java.rmi.RemoteException,
NoWorkException
java.rmi.RemoteException
NoWorkException
public void submitWorkUnit(lima.distribution.WorkUnit u)
throws java.rmi.RemoteException
u - - The finished WorkUnit.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||