com.sun.grid
Class ComputeEngineImpl_Stub

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteStub
              |
              +--com.sun.grid.ComputeEngineImpl_Stub
All Implemented Interfaces:
ComputeEngine, java.rmi.Remote, java.io.Serializable

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

See Also:
Serialized Form

Field Summary
private static java.lang.reflect.Method $method_compute_0
           
private static java.lang.reflect.Method $method_computeAsynch_1
           
private static java.lang.reflect.Method $method_getResults_2
           
private static java.lang.reflect.Method $method_isComplete_3
           
private static long serialVersionUID
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ComputeEngineImpl_Stub(java.rmi.server.RemoteRef)
           
 
Method Summary
(package private) static void ()
           
 java.io.Serializable compute(Computable)
          This method submits a job for synchrnous execution.
 java.lang.String computeAsynch(Computable)
          This method submits a job for asynchronous execution.
 java.io.Serializable getResults(java.lang.String)
          This method retrieves the results of a job that was executed asynchronously.
 boolean isComplete(java.lang.String)
          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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

$method_compute_0

private static java.lang.reflect.Method $method_compute_0

$method_computeAsynch_1

private static java.lang.reflect.Method $method_computeAsynch_1

$method_getResults_2

private static java.lang.reflect.Method $method_getResults_2

$method_isComplete_3

private static java.lang.reflect.Method $method_isComplete_3
Constructor Detail

ComputeEngineImpl_Stub

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

static void ()

compute

public java.io.Serializable compute(Computable)
                             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:
- 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)
                               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:
- 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)
                                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:
- the id of the job
Returns:
the results object
Throws:
ComputeException - if an error occurs during job execution
java.rmi.RemoteException - if an error occurs on the server side

isComplete

public boolean isComplete(java.lang.String)
                   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:
- the id of the job
Returns:
whether the job has finished
Throws:
ComputeException - if an error occurs during job execution
java.rmi.RemoteException - if an error occurs on the server side