com.sun.grid.jgrid.proxy
Class ComputeServer_Stub

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

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

This stub is modified to translate all calls to compute(Computable) into calls to compute(Computable, String) and similarly for computeAsynch. The missing string parameter is filled in from the java.rmi.server.codebase system property.

Since:
0.2.1
See Also:
Serialized Form

Field Summary
private static java.lang.reflect.Method $method_compute_0
           
private static java.lang.reflect.Method $method_compute_1
           
private static java.lang.reflect.Method $method_computeAsynch_2
           
private static java.lang.reflect.Method $method_computeAsynch_3
           
private static java.lang.reflect.Method $method_getResults_4
           
private static java.lang.reflect.Method $method_isComplete_5
           
private static long interfaceHash
           
private static java.rmi.server.Operation[] operations
           
private static long serialVersionUID
           
private static boolean useNewInvoke
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ComputeServer_Stub()
          Creates a new stub.
ComputeServer_Stub(java.rmi.server.RemoteRef ref)
          Creates a new stub around the given reference object.
 
Method Summary
 java.io.Serializable compute(Computable $param_Computable_1)
          This method submits a job for synchrnous execution.
 java.io.Serializable compute(Computable $param_Computable_1, java.lang.String $param_String_2)
          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.lang.String computeAsynch(Computable $param_Computable_1, java.lang.String $param_String_2)
          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
 

Field Detail

operations

private static final java.rmi.server.Operation[] operations

interfaceHash

private static final long interfaceHash
See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

useNewInvoke

private static boolean useNewInvoke

$method_compute_0

private static java.lang.reflect.Method $method_compute_0

$method_compute_1

private static java.lang.reflect.Method $method_compute_1

$method_computeAsynch_2

private static java.lang.reflect.Method $method_computeAsynch_2

$method_computeAsynch_3

private static java.lang.reflect.Method $method_computeAsynch_3

$method_getResults_4

private static java.lang.reflect.Method $method_getResults_4

$method_isComplete_5

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

ComputeServer_Stub

public ComputeServer_Stub()
Creates a new stub.


ComputeServer_Stub

public ComputeServer_Stub(java.rmi.server.RemoteRef ref)
Creates a new stub around the given reference object.

Parameters:
ref - the RMI reference object
Method Detail

compute

public java.io.Serializable compute(Computable $param_Computable_1)
                             throws ComputeException,
                                    java.rmi.RemoteException
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:
RemoteException - if an error occurs on the server side
ComputeException - if an error occurs during job execution

compute

public java.io.Serializable compute(Computable $param_Computable_1,
                                    java.lang.String $param_String_2)
                             throws ComputeException,
                                    java.rmi.RemoteException
This method submits a job for synchrnous execution.

Specified by:
compute in interface ComputeEngine
Parameters:
$param_Computable_1 - the job to be executed
$param_String_2 - an alternate codebase to use for loading the Computable class
Returns:
the result object
Throws:
RemoteException - if an error occurs on the server side
ComputeException - if an error occurs during job execution

computeAsynch

public java.lang.String computeAsynch(Computable $param_Computable_1)
                               throws ComputeException,
                                      java.rmi.RemoteException
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:
RemoteException - if an error occurs on the server side
ComputeException - if an error occurs during job execution

computeAsynch

public java.lang.String computeAsynch(Computable $param_Computable_1,
                                      java.lang.String $param_String_2)
                               throws ComputeException,
                                      java.rmi.RemoteException
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
$param_String_2 - an alternate codebase to use for loading the Computable class
Returns:
the result object
Throws:
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
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:
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
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:
RemoteException - if an error occurs on the server side
ComputeException - if an error occurs during job execution