|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.ucsb.cs.jicos.services.Client2Hsp
public final class Client2Hsp
| Method Summary | |
|---|---|
java.lang.Object |
compute(Task task)
Application gives a task to the Hsp. |
Result |
getResult()
Get the Result object for some computation that was initiated via the setComputation method. |
HspState |
getState()
Returns information associated with the state of the Hsp. |
boolean |
isComplete(ResultId resultId)
|
void |
loadState(edu.ucsb.cs.jicos.services.StateConfig stateConfig)
This method is used to initiate the restoring of state from a datasource described by StateConfig. |
void |
login(Environment environment)
login Client with the Hsp. |
Invoice |
logout()
logout Client from the Hsp. |
void |
saveState(edu.ucsb.cs.jicos.services.StateConfig stateConfig)
This method is used to initiate saving the state of the current computation (i.e HSP and TaskServer state) to the specified datasource described by StateConfig. |
ResultId |
setComputation(Task task)
This method is used to initiate a computation without waiting for the computation to complete. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object compute(Task task)
throws ComputeException,
JicosException,
java.rmi.RemoteException
task - is the root task of some Task graph.
java.rmi.RemoteException - This method is invoked remotely.
ComputeException - This Exception is thrown when a task's execute method
throws an Exception. ComputeException propagates the
Exception back to this original compute method.
JicosException
public HspState getState()
throws java.rmi.RemoteException
java.rmi.RemoteException - This method is invoked remotely on the Hsp.
public Result getResult()
throws ComputeException,
JicosException,
java.rmi.RemoteException
ComputeException - The returned Result object is associated with a computation that was initiated
via the setComputation method. If this computation spawned a Task object whose
execute method threw a ComputeException, then this invocation of getResult
propagates that ComputeException back to the client application.
java.rmi.RemoteException - This is a Remote method.
JicosException
public boolean isComplete(ResultId resultId)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
java.lang.IllegalStateException
java.rmi.RemoteException
public void login(Environment environment)
throws java.rmi.RemoteException
Hsp.
environment - Data container for client information associated with this
client during this login (session).
java.rmi.RemoteException - This method is invoked remotely.
public Invoice logout()
throws java.rmi.RemoteException
Hsp.
java.rmi.RemoteException - This method is invoked remotely.
java.lang.InterruptedException - The Hsp propagates the logout to the TaskServer
network. It waits for Session statistics
to be returned from the TaskServer network.
Hsp propagates the InterruptedException that wait
can throw.
public ResultId setComputation(Task task)
throws java.rmi.RemoteException
task - The Task object that represents the overall computation.
java.rmi.RemoteException - This is a Remote method.
public void loadState(edu.ucsb.cs.jicos.services.StateConfig stateConfig)
throws ComputeException,
JicosException,
java.rmi.RemoteException
stateConfig - The StateConfig object that describes the datasource.
java.rmi.RemoteException - This is a Remote method.
JicosException
ComputeException
public void saveState(edu.ucsb.cs.jicos.services.StateConfig stateConfig)
throws ComputeException,
JicosException,
java.rmi.RemoteException
stateConfig - The StateConfig object that describes the datasource.
java.rmi.RemoteException - This is a Remote method.
JicosException
ComputeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||