|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is the interface to the ComputeEngine that clients see. It allows clients to submit jobs both synchronously and asynchronously and check on the results of asynchronous jobs.
Method Summary | |
java.io.Serializable |
compute(Computable job)
This method submits a job for synchrnous execution. |
java.io.Serializable |
compute(Computable job,
java.lang.String codebase)
This method submits a job for synchrnous execution. |
java.lang.String |
computeAsynch(Computable job)
This method submits a job for asynchronous execution. |
java.lang.String |
computeAsynch(Computable job,
java.lang.String codebase)
This method submits a job for asynchronous execution. |
java.io.Serializable |
getResults(java.lang.String jobId)
This method retrieves the results of a job that was executed asynchronously. |
boolean |
isComplete(java.lang.String jobId)
This method check whether an asynchronous job has finished executing. |
Method Detail |
public java.io.Serializable compute(Computable job) throws java.rmi.RemoteException, ComputeException
job
- the job to be executed
java.rmi.RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.io.Serializable compute(Computable job, java.lang.String codebase) throws java.rmi.RemoteException, ComputeException
job
- the job to be executedcodebase
- an alternate codebase to use for loading the Computable class
java.rmi.RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.lang.String computeAsynch(Computable job) throws java.rmi.RemoteException, ComputeException
job
- the job to be executed
java.rmi.RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.lang.String computeAsynch(Computable job, java.lang.String codebase) throws java.rmi.RemoteException, ComputeException
job
- the job to be executedcodebase
- an alternate codebase to use for loading the Computable class
java.rmi.RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.io.Serializable getResults(java.lang.String jobId) throws java.rmi.RemoteException, ComputeException
jobId
- the id of the job
java.rmi.RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic boolean isComplete(java.lang.String jobId) throws java.rmi.RemoteException, ComputeException
jobId
- the id of the job
java.rmi.RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job execution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |