|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Computer2Server
The computer's view of the server. Specifies methods for a computer to submit results and request tasks.
Field Summary | |
---|---|
static java.lang.String |
NAME
The RMI registry name for the compute server. |
Method Summary | |
---|---|
LoginContainer |
login(Server2Computer computer)
Logs a computer in to a server. |
void |
putResult(Server2Computer computer,
Result result)
puts a result on the server |
Task |
takeTask(Server2Computer computer)
Blocking call to take a task from the server |
Task[] |
takeTasks(Server2Computer computer,
int count)
Non-blocking request for multiple tasks |
void |
updateShared(Server2Computer computer,
Shared shared)
send a shared update to the server |
Field Detail |
---|
static final java.lang.String NAME
Method Detail |
---|
LoginContainer login(Server2Computer computer) throws java.rmi.RemoteException
computer
- A reference to the remote computer object that is logging in. This allows the
server to make calls to the computer.
java.rmi.RemoteException
- RMI ExceptionTask takeTask(Server2Computer computer) throws java.rmi.RemoteException
computer
- the computer requesting the task
java.rmi.RemoteException
- RMI ExceptionTask[] takeTasks(Server2Computer computer, int count) throws java.rmi.RemoteException
computer
- The requesting computercount
- The number of desired tasks
java.rmi.RemoteException
- RMI Exceptionvoid putResult(Server2Computer computer, Result result) throws java.rmi.RemoteException
computer
- the computer issuing the resultresult
- the result object
java.rmi.RemoteException
- RMI Exceptionvoid updateShared(Server2Computer computer, Shared shared) throws java.rmi.RemoteException
computer
- the computer issuing the updateshared
- the new shared object
java.rmi.RemoteException
- RMI Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |