All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ninja.activeproxy.path.PathInstantiator

java.lang.Object
   |
   +----ninja.rmi.NinjaRemoteObject
           |
           +----ninja.ispace.iSpaceService
                   |
                   +----ninja.activeproxy.path.PathInstantiator

public class PathInstantiator
extends iSpaceService
implements PathInstantiatorIF

Constructor Index

 o PathInstantiator()
Create a new PathInstantiator

Method Index

 o destroy()
Tear down the ispace service
 o init(iSpaceServiceConfig)
Start up the ispace service
 o instantiateOperator(OperatorDescription)
Instantiate one operator Finds available operators via SDS, not Xset (should be changed?) Overwrites any currently installed runtime structure in op.
 o instantiatePath(PathDescription)
Instantiate the specified PathDescription with running instances of operators found via SDS.

Constructors

 o PathInstantiator
 public PathInstantiator() throws RemoteException
Create a new PathInstantiator

Methods

 o init
 protected void init(iSpaceServiceConfig config)
Start up the ispace service

Overrides:
init in class iSpaceService
 o destroy
 protected void destroy()
Tear down the ispace service

Overrides:
destroy in class iSpaceService
 o instantiatePath
 public PathDescription instantiatePath(PathDescription path) throws RemoteException
Instantiate the specified PathDescription with running instances of operators found via SDS. Will overwrite the runtime object of any already instantiated operators. For now, just use SDS directory to find operators -- eventually, maybe we want to switch to a Xset based system? Limitations: - We don't notify Xset/SDS when an operator which was registered doesn't respond - We don't rebuild the path if a registered operator doesn't respond

Parameters:
path - The logical path to be instantiated
Returns:
The instantiated path -- has to physically return a new version of the path because the client is remote (and won't see changes made to the path parameter)
 o instantiateOperator
 public OperatorDescription instantiateOperator(OperatorDescription op) throws RemoteException
Instantiate one operator Finds available operators via SDS, not Xset (should be changed?) Overwrites any currently installed runtime structure in op. This can be used to reinstantiate a single element of a path.

Parameters:
op - The operator to instantiate
Returns:
The instantiated operator

All Packages  Class Hierarchy  This Package  Previous  Next  Index