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.
-
OpServices()
-
-
containsNamedOperator(Vector, String)
-
-
containsOperator(Vector, OpInfo)
-
-
getOperatorStubs(OpInfo)
- Return stubs for operator in its current location
-
loadOperator(OpInfo, String)
- Load the operator the specified url onto the specified host
-
operators()
-
-
opInstances(String)
-
-
opInstancesVector(String)
-
-
uniqueOps()
-
OpServices
public OpServices()
operators
public static OpIterator operators()
- Returns:
- Iterator with all operators currently registered via SDS
uniqueOps
public static OpIterator uniqueOps()
- Returns:
- Iterator with all uniquely named operators currently registered via SDS
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
opInstancesVector
public static Vector opInstancesVector(String name)
- Parameters:
- name - The name of the operator to search for
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
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
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
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