|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsystem.ComputerProxy
public class ComputerProxy
A thread that handles a Computer when it registers to the Space. A reference must also be passed into it in order to take Tasks and add Results.
Constructor Summary | |
---|---|
ComputerProxy(Computer computer,
java.lang.Long computerId,
Space space,
NetworkHandle handle)
Constructor. |
Method Summary | |
---|---|
void |
addTask(Task task)
Add a Task to the local task queue. |
NetworkHandle |
getNetworkHandle()
|
void |
run()
Loop indefinitely getting Tasks and running them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComputerProxy(Computer computer, java.lang.Long computerId, Space space, NetworkHandle handle)
computer
- space
- Method Detail |
---|
public NetworkHandle getNetworkHandle()
public void addTask(Task task)
task
- public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |