provided.engine.model
Class EngineModel

java.lang.Object
  extended by provided.engine.model.EngineModel

public class EngineModel
extends java.lang.Object


Field Summary
private  IVoidLambda<java.lang.String> outputCmd
          A command used as a wrapper around the view adapter for the RegistryFactory and the ComputeEngine.
private  java.rmi.registry.Registry registry
          The RMI Registry
private  IRMIUtils rmiUtils
          Utility object used to get the Registry
private  IViewAdapter view
          The adapter to the view
 
Constructor Summary
EngineModel(IViewAdapter view)
          The constructor for the class
 
Method Summary
 void start()
          Start the server by setting the necessary RMI system parameters, starting the security manager, locating the local Registry and binding an instance of the ComputeEngine to it.
 void stop()
          Stops the EngineModel by unbinding the ComputeEngine from the Registry and stopping class file server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

private IViewAdapter view
The adapter to the view


registry

private java.rmi.registry.Registry registry
The RMI Registry


outputCmd

private IVoidLambda<java.lang.String> outputCmd
A command used as a wrapper around the view adapter for the RegistryFactory and the ComputeEngine.


rmiUtils

private IRMIUtils rmiUtils
Utility object used to get the Registry

Constructor Detail

EngineModel

public EngineModel(IViewAdapter view)
The constructor for the class

Parameters:
view - The adapter to the view
Method Detail

start

public void start()
Start the server by setting the necessary RMI system parameters, starting the security manager, locating the local Registry and binding an instance of the ComputeEngine to it. Also starts the class file server to enable remote dynamic class loading.


stop

public void stop()
Stops the EngineModel by unbinding the ComputeEngine from the Registry and stopping class file server.