|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Client2Server
Server interface exposed to the client.
| Field Summary | |
|---|---|
static java.lang.String |
ServiceName
Used by the client to identify the remote server in the registry. |
| Method Summary | |
|---|---|
long |
getAvgRunTime()
The average run time for each task. |
int |
getTaskCount()
Return the number of tasks created. |
long |
getTotalRunTime()
Return the amount of time it took for the tasks to run. |
void |
registerListener(RemoteListener listener)
Used to register a remote listener on a server or computer. |
TaskId |
runTask(RunTimeListener listener,
Task task)
Used to place a task on the server for execution. |
void |
setComputation(java.lang.Object input)
Sets the common input for all the tasks. |
void |
setShared(Shared shared)
Sets the shared object. |
Result |
takeResult()
Return a result that has been processed. |
| Methods inherited from interface cs290b.project.api.Administrable |
|---|
exitService, stopService |
| Field Detail |
|---|
static final java.lang.String ServiceName
| Method Detail |
|---|
void registerListener(RemoteListener listener)
throws java.rmi.RemoteException
listener - The listener to register.
java.rmi.RemoteException
void setComputation(java.lang.Object input)
throws java.rmi.RemoteException
input - The input to be dispersed to all the computers.
java.rmi.RemoteException
void setShared(Shared shared)
throws java.rmi.RemoteException
shared - The shared to be dispersed to all the computers.
java.rmi.RemoteException
TaskId runTask(RunTimeListener listener,
Task task)
throws java.rmi.RemoteException
task - The divide and conquer task to execute.
java.rmi.RemoteException
Result takeResult()
throws java.rmi.RemoteException
java.rmi.RemoteException
int getTaskCount()
throws java.rmi.RemoteException
java.rmi.RemoteException
long getTotalRunTime()
throws java.rmi.RemoteException
java.rmi.RemoteException
long getAvgRunTime()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||