|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteStub
com.sun.grid.jgrid.proxy.ComputeServer_Stub
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.
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 |
private static final java.rmi.server.Operation[] operations
private static final long interfaceHash
private static final long serialVersionUID
private static boolean useNewInvoke
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
Constructor Detail |
public ComputeServer_Stub()
public ComputeServer_Stub(java.rmi.server.RemoteRef ref)
ref
- the RMI reference objectMethod Detail |
public java.io.Serializable compute(Computable $param_Computable_1) throws ComputeException, java.rmi.RemoteException
compute
in interface ComputeEngine
$param_Computable_1
- the job to be executed
RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.io.Serializable compute(Computable $param_Computable_1, java.lang.String $param_String_2) throws ComputeException, java.rmi.RemoteException
compute
in interface ComputeEngine
$param_Computable_1
- the job to be executed$param_String_2
- an alternate codebase to use for loading the Computable class
RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.lang.String computeAsynch(Computable $param_Computable_1) throws ComputeException, java.rmi.RemoteException
computeAsynch
in interface ComputeEngine
$param_Computable_1
- the job to be executed
RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.lang.String computeAsynch(Computable $param_Computable_1, java.lang.String $param_String_2) throws ComputeException, java.rmi.RemoteException
computeAsynch
in interface ComputeEngine
$param_Computable_1
- the job to be executed$param_String_2
- an alternate codebase to use for loading the Computable class
RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic java.io.Serializable getResults(java.lang.String $param_String_1) throws ComputeException, java.rmi.RemoteException
getResults
in interface ComputeEngine
$param_String_1
- the id of the job
RemoteException
- if an error occurs on the server side
ComputeException
- if an error occurs during job executionpublic boolean isComplete(java.lang.String $param_String_1) throws ComputeException, java.rmi.RemoteException
isComplete
in interface ComputeEngine
$param_String_1
- the id of the job
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 |