All Packages Class Hierarchy This Package Previous Next Index
Class edu.cmu.paid.network.voyager.RemoteObjectManager
java.lang.Object
|
+----edu.cmu.paid.network.voyager.RemoteObjectManager
- public class RemoteObjectManager
- extends Object
-
RemoteObjectManager()
-
-
bind(String, Object)
- Bind an object to a name in the local Namespace.
-
create(String)
- Create a local instance of an object using the default constructor.
-
create(String, Object[])
- Create a local instance of an object using another constructor.
-
create(String, Object[], String)
- Create a remote instance of an object using another constructor.
-
create(String, String)
- Create a remote instance of an object using the default constructor.
-
export(Object, String)
- Export an object to a given port.
-
invokeFuture(Object, String, Object[])
- Invoke a future message.
-
invokeOneWay(Object, String, Object[])
- Invoke a one-way message (i.e.
-
invokeSync(Object, String, Object[])
- Invoke a synchronous message.
-
lookup(String)
- Get the object bound to a name a Namespace.
-
shutdown()
- Kills Voyager threads on machine.
-
startup()
- Startup Voyager threads.
-
startup(String)
- Startup Voyager threads on a given url.
-
unbind(String)
- Unbind the name from an object in the local namespace.
RemoteObjectManager
public RemoteObjectManager()
startup
public static void startup() throws VoyagerStartupPaidNetworkException
- Startup Voyager threads.
- Throws: VoyagerStartupPaidNetworkException
- Relays exceptions thrown by Voyager.startup().
startup
public static void startup(String url) throws VoyagerStartupPaidNetworkException
- Startup Voyager threads on a given url.
- Throws: VoyagerStartupPaidNetworkException
- Relays exceptions thrown by Voyager.startup().
create
public static Proxy create(String className) throws Exception
- Create a local instance of an object using the default constructor.
- Parameters:
- className - Fully qualified class name including all package names.
- Returns:
- A proxy to the newly created object.
- Throws: Exception
- Relays exceptions thrown by Voyager calls.
create
public static Proxy create(String className,
Object args[]) throws Exception
- Create a local instance of an object using another constructor.
- Parameters:
- className - Fully qualified class name including all package names.
- args - Argument array for the target constructor.
- Returns:
- A proxy to the newly created object.
- Throws: Exception
- Relays exceptions thrown by Voyager calls.
create
public static Proxy create(String className,
String url) throws Exception
- Create a remote instance of an object using the default constructor.
- Parameters:
- className - Fully qualified class name including all package names.
- url - Specify the location for the object to be created.
- Returns:
- A proxy to the newly created object.
- Throws: Exception
- Relays exceptions thrown by Voyager calls.
create
public static Proxy create(String className,
Object args[],
String url) throws Exception
- Create a remote instance of an object using another constructor.
- Parameters:
- className - Fully qualified class name including all package names.
- args - Argument array for the target constructor.
- url - Specify the location for the object to be created.
- Returns:
- A proxy to the newly created object.
- Throws: Exception
- Relays exceptions thrown by Voyager calls.
invokeSync
public static Result invokeSync(Object object,
String method,
Object args[])
- Invoke a synchronous message.
- Parameters:
- object - The object on which to call the method.
- method - The method name if it is uniquely identified,
otherwise must be "methodName(type1, type2, ...)".
- args - The array of arguements to pass to the method.
invokeOneWay
public static void invokeOneWay(Object object,
String method,
Object args[]) throws NoSuchMethodException
- Invoke a one-way message (i.e. Messages that have no return value).
- Parameters:
- object - The object on which to call the method.
- method - The method name if it is uniquely identified,
otherwise must be "methodName(type1, type2, ...)".
- args - The array of arguements to pass to the method.
- Returns:
- An exception, if one occurs.
- Throws: NoSuchMethodException
- Relays exceptions thrown by Voyager calls.
invokeFuture
public static Result invokeFuture(Object object,
String method,
Object args[])
- Invoke a future message.
- Parameters:
- object - The object on which to call the method.
- method - The method name if it is uniquely identified,
otherwise must be "methodName(type1, type2, ...)".
- args - The array of arguements to pass to the method.
export
public static Proxy export(Object object,
String port) throws IOException, InvalidXURLNetworkException
- Export an object to a given port.
- Parameters:
- object - Object to export.
- port - String with url to export object to.
- Returns:
- A Proxy to the exported object.
- Throws: InvalidXURLNetworkException
- Relays exceptions thrown by Voyager calls.
bind
public static void bind(String name,
Object object) throws NamespaceNetworkException
- Bind an object to a name in the local Namespace.
- Parameters:
- name - Name to be bound to object.
- object - Object being named.
- Throws: NamespaceNetworkException
- Relays exceptions thrown by Voyager calls.
unbind
public static void unbind(String name) throws NamespaceNetworkException
- Unbind the name from an object in the local namespace.
- Parameters:
- name - The name of the object to unbind.
lookup
public static Proxy lookup(String name) throws NamespaceNetworkException
- Get the object bound to a name a Namespace.
- Parameters:
- name - Namespace/name to lookup.
- Returns:
- Proxy to object with the given name.
- Throws: NamespaceNetworkException
- Relays exceptions thrown by Voyager calls.
shutdown
public static void shutdown()
- Kills Voyager threads on machine.
All Packages Class Hierarchy This Package Previous Next Index