provided.compute
Interface ICompute

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ComputeEngine

public interface ICompute
extends java.rmi.Remote

A generalized compute engine object that will execute a given ITask object and return the result


Field Summary
static java.lang.String BOUND_NAME
          The name the ICompute object will be bound to in the RMI Registry
static int BOUND_PORT
          The port that the client will use to communicate with the ICompute object Note that this port must be opened of inbound traffic on the server machine
 
Method Summary
<T> T
executeTask(ITask<T> t)
          Execute the given ITask object and return the result
 IRemoteTaskViewAdapter setTextAdapter(IRemoteTaskViewAdapter clientTVA)
          Sets this object's IRemoteTaskViewAdapter so that it can print strings out on the correct target.
 

Field Detail

BOUND_NAME

static final java.lang.String BOUND_NAME
The name the ICompute object will be bound to in the RMI Registry

See Also:
Constant Field Values

BOUND_PORT

static final int BOUND_PORT
The port that the client will use to communicate with the ICompute object Note that this port must be opened of inbound traffic on the server machine

See Also:
Constant Field Values
Method Detail

executeTask

<T> T executeTask(ITask<T> t)
              throws java.rmi.RemoteException
Execute the given ITask object and return the result

Type Parameters:
T - The type of the return value from executing the given ITask object
Parameters:
t - The ITask object to execute
Returns:
The result from executing the ITask object
Throws:
java.rmi.RemoteException

setTextAdapter

IRemoteTaskViewAdapter setTextAdapter(IRemoteTaskViewAdapter clientTVA)
                                      throws java.rmi.RemoteException
Sets this object's IRemoteTaskViewAdapter so that it can print strings out on the correct target.

Parameters:
clientTVA - the task view adapter to for the server to use.
Returns:
An adapter to the ICompute server's view.
Throws:
java.rmi.RemoteException - thrown if a network error occurs.