|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprovided.engine.model.ComputeEngine
public class ComputeEngine
A concrete implementation of an ICompute engine
| Field Summary | |
|---|---|
private IRemoteTaskViewAdapter |
clientTVA
A remote view adapter connected to the client's view |
private ILocalTaskViewAdapter |
taskView
A local task view adapter that delegates the to the main view adapter. |
private IVoidLambda<java.lang.String> |
viewCmd
A command (lambda) that serves as an adapter to the view |
| Fields inherited from interface provided.compute.ICompute |
|---|
BOUND_NAME, BOUND_PORT |
| Constructor Summary | |
|---|---|
ComputeEngine(IVoidLambda<java.lang.String> viewCmd)
The constructor for the class |
|
| Method Summary | ||
|---|---|---|
|
executeTask(ITask<T> t)
Executes the given task and returns the result. |
|
IRemoteTaskViewAdapter |
setTextAdapter(IRemoteTaskViewAdapter clientTVA)
Sets a remote view adapter for the server to use to display info on the client's view and returns a remote view adapter for the client to use to display info on the server's view. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private IVoidLambda<java.lang.String> viewCmd
private ILocalTaskViewAdapter taskView
private IRemoteTaskViewAdapter clientTVA
| Constructor Detail |
|---|
public ComputeEngine(IVoidLambda<java.lang.String> viewCmd)
viewCmd - The adapter to the view| Method Detail |
|---|
public <T> T executeTask(ITask<T> t)
executeTask in interface IComputeT - The type of the return value from executing the given ITask
objectt - The ITask object to execute
public IRemoteTaskViewAdapter setTextAdapter(IRemoteTaskViewAdapter clientTVA)
setTextAdapter in interface IComputeclientTVA - Remote task view adapter stub from the client
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||