All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ninja.activeproxy.path.OpServices

java.lang.Object
   |
   +----ninja.activeproxy.path.OpServices

public class OpServices
extends Object
OpServices finds lists of operators, allows callers to get Stub interfaces into them.


Constructor Index

 o OpServices()

Method Index

 o containsNamedOperator(Vector, String)
 o containsOperator(Vector, OpInfo)
 o getOperatorStubs(OpInfo)
Return stubs for operator in its current location
 o loadOperator(OpInfo, String)
Load the operator the specified url onto the specified host
 o operators()
 o opInstances(String)
 o opInstancesVector(String)
 o uniqueOps()

Constructors

 o OpServices
 public OpServices()

Methods

 o operators
 public static OpIterator operators()
Returns:
Iterator with all operators currently registered via SDS
 o uniqueOps
 public static OpIterator uniqueOps()
Returns:
Iterator with all uniquely named operators currently registered via SDS
 o opInstances
 public static OpIterator opInstances(String name)
Parameters:
name - The name of the operator to search for (from an OpInfo.name record)
Returns:
Iterator will all instances of a particular operator
 o opInstancesVector
 public static Vector opInstancesVector(String name)
Parameters:
name - The name of the operator to search for
 o loadOperator
 public static SDSOperatorIF loadOperator(OpInfo op,
                                          String host) throws InvocationTargetException, InstantiationException, ClassNotFoundException, RemoteException, IllegalAccessException
Load the operator the specified url onto the specified host

Parameters:
url - A URL to an operator returned from SDS
host - The hostname of a machine running an iSpaceLoader to load onto
Returns:
stubs which can be used to control the operator on the host
Throws: InvocationTargetException
xxx
Throws: InstantiationException
xxx
Throws: ClassNotFoundException
xxx
Throws: RemoteException
xxx
Throws: IllegalAccessException
xxx
 o getOperatorStubs
 public static SDSOperatorIF getOperatorStubs(OpInfo op) throws RemoteException
Return stubs for operator in its current location

Parameters:
op - OpInfo identifying an operator from OpIterator
Returns:
stubs which can be used to call into operator
Throws: RemoteException
Operator can't be located/isn't available
 o containsOperator
 public static boolean containsOperator(Vector ops,
                                        OpInfo o)
Parameters:
ops - A vector op ninja.madden.OpInfo records
o - An OpInfo record whose presence to test for in ops
Returns:
s true if o is in ops, false otherwise
 o containsNamedOperator
 public static boolean containsNamedOperator(Vector ops,
                                             String name)
Parameters:
ops - A vector of ninja.madden.OpInfo records
name - The name of the operator to search for
Returns:
s true if an operator named name is in ops

All Packages  Class Hierarchy  This Package  Previous  Next  Index