com.sun.grid.jgrid
Class ComputeEngineImpl_Stub

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteStub
          extended bycom.sun.grid.jgrid.ComputeEngineImpl_Stub
All Implemented Interfaces:
ComputeEngine, java.rmi.Remote, java.io.Serializable

public final class ComputeEngineImpl_Stub
extends java.rmi.server.RemoteStub
implements ComputeEngine, java.rmi.Remote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ComputeEngineImpl_Stub()
           
ComputeEngineImpl_Stub(java.rmi.server.RemoteRef ref)
           
 
Method Summary
 java.io.Serializable compute(Computable $param_Computable_1)
          This method submits a job for synchrnous execution.
 java.lang.String computeAsynch(Computable $param_Computable_1)
          This method submits a job for asynchronous execution.
 java.io.Serializable getResults(java.lang.String $param_String_1)
          This method retrieves the results of a job that was executed asynchronously.
 boolean isComplete(java.lang.String $param_String_1)
          This method check whether an asynchronous job has finished executing.
 
Methods inherited from class java.rmi.server.RemoteStub
setRef
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComputeEngineImpl_Stub

public ComputeEngineImpl_Stub()

ComputeEngineImpl_Stub

public ComputeEngineImpl_Stub(java.rmi.server.RemoteRef ref)
Method Detail

compute

public java.io.Serializable compute(Computable $param_Computable_1)
                             throws ComputeException,
                                    java.rmi.RemoteException
Description copied from interface: ComputeEngine
This method submits a job for synchrnous execution.

Specified by:
compute in interface ComputeEngine
Parameters:
$param_Computable_1 - the job to be executed
Returns:
the result object
Throws:
ComputeException - if an error occurs during job execution
java.rmi.RemoteException - if an error occurs on the server side

computeAsynch

public java.lang.String computeAsynch(Computable $param_Computable_1)
                               throws ComputeException,
                                      java.rmi.RemoteException
Description copied from interface: ComputeEngine
This method submits a job for asynchronous execution. Job status can be checked with the isComplete method and the results can be retrieved by the getResults method.

Specified by:
computeAsynch in interface ComputeEngine
Parameters:
$param_Computable_1 - the job to be executed
Returns:
the result object
Throws:
java.rmi.RemoteException - if an error occurs on the server side
ComputeException - if an error occurs during job execution

getResults

public java.io.Serializable getResults(java.lang.String $param_String_1)
                                throws ComputeException,
                                       java.rmi.RemoteException
Description copied from interface: ComputeEngine
This method retrieves the results of a job that was executed asynchronously.

Specified by:
getResults in interface ComputeEngine
Parameters:
$param_String_1 - the id of the job
Returns:
the results object
Throws:
java.rmi.RemoteException - if an error occurs on the server side
ComputeException - if an error occurs during job execution

isComplete

public boolean isComplete(java.lang.String $param_String_1)
                   throws ComputeException,
                          java.rmi.RemoteException
Description copied from interface: ComputeEngine
This method check whether an asynchronous job has finished executing.

Specified by:
isComplete in interface ComputeEngine
Parameters:
$param_String_1 - the id of the job
Returns:
whether the job has finished
Throws:
java.rmi.RemoteException - if an error occurs on the server side
ComputeException - if an error occurs during job execution