|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Client2Server
The client's view of the server. Specifies methods for a client to submit tasks and request results.
Field Summary | |
---|---|
static java.lang.String |
NAME
The RMI registry name for the compute server. |
Method Summary | |
---|---|
void |
putTask(Task task)
Remote method for submitting a task to the server. |
void |
registerListener(RemoteListener remoteListener)
Registers an event listener on a server |
void |
stop()
Stops the server and all of its connected computers. |
java.lang.Object |
takeResult()
Gets a result from the server. |
Field Detail |
---|
static final java.lang.String NAME
Method Detail |
---|
void putTask(Task task) throws java.rmi.RemoteException
task
- The task to be executed on a client's behalf
java.rmi.RemoteException
- RMI exceptionjava.lang.Object takeResult() throws java.rmi.RemoteException
java.rmi.RemoteException
- RMI exceptionvoid registerListener(RemoteListener remoteListener) throws java.rmi.RemoteException
remoteListener
- the listener to register
java.rmi.RemoteException
- RMI Exceptionvoid stop() throws java.rmi.RemoteException
java.rmi.RemoteException
- RMI Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |