com.sun.grid.proxy
Interface ResultChannel

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ResultChannelImpl, ResultChannelImpl_Stub

public interface ResultChannel
extends java.rmi.Remote

This class is the interface used by ComputeEngine's to send the results of a job back to the ComputeProxy.

See Also:
ComputeProxy, ComputeEngineImpl

Field Summary
static java.lang.String LOOKUP_NAME
          The name under which the ResultChannel will be registered.
static int PORT
          The port on which the registry housing the ResultChannel will be started.
 
Method Summary
 void sendException(java.lang.Exception e, java.lang.String processId)
          This method sends the execption resulting from a job to the ComputeProxy.
 void sendResult(java.io.Serializable result, java.lang.String processId)
          This method sends the results of a job to the ComputeProxy.
 

Field Detail

PORT

public static final int PORT
The port on which the registry housing the ResultChannel will be started.

See Also:
Constant Field Values

LOOKUP_NAME

public static final java.lang.String LOOKUP_NAME
The name under which the ResultChannel will be registered.

See Also:
Constant Field Values
Method Detail

sendResult

public void sendResult(java.io.Serializable result,
                       java.lang.String processId)
                throws java.rmi.RemoteException
This method sends the results of a job to the ComputeProxy.

Parameters:
result - the results object
processId - the id of the job
Throws:
java.rmi.RemoteException - if an error occurs on the server

sendException

public void sendException(java.lang.Exception e,
                          java.lang.String processId)
                   throws java.rmi.RemoteException
This method sends the execption resulting from a job to the ComputeProxy.

Parameters:
e - the exception
processId - the id of the job
Throws:
java.rmi.RemoteException - if an error occurs on the server side