nathan.middleware
Class RemoteReferenceModuleServer

java.lang.Object
  extended by nathan.middleware.RemoteReferenceModuleServer

public class RemoteReferenceModuleServer
extends java.lang.Object

ServerRemoteReference maps remote references to local references.

Author:
Nathan Balon
Advance Operating Systems CIS 578
University of Michigan Dearborn
Remote Method Invocation Middleware Project

Method Summary
 void addReference(RemoteObjectReference ror, java.lang.Object o)
          Add a remote reference to the table.
 java.lang.Object getReference(RemoteObjectReference ror)
          Lookup the object which has specific RemoteObjectReference.
static RemoteReferenceModuleServer getServerRemoteReference()
          Gets an instance of the remote reference module
 void removeReference(RemoteObjectReference ror)
          Remove an object from the table.
 java.lang.String toString()
          Returns a string representation of the objects and references contained in the ReferenceModule.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getServerRemoteReference

public static RemoteReferenceModuleServer getServerRemoteReference()
Gets an instance of the remote reference module

Returns:
RemoteRefernceModuleServer

addReference

public void addReference(RemoteObjectReference ror,
                         java.lang.Object o)
Add a remote reference to the table.

Parameters:
ror - The RemoteObjectReference for an object.
o - The object that methods will be called on.

removeReference

public void removeReference(RemoteObjectReference ror)
Remove an object from the table.

Parameters:
ror - The RemoteObjectReference of the object to be removed.

getReference

public java.lang.Object getReference(RemoteObjectReference ror)
Lookup the object which has specific RemoteObjectReference.

Parameters:
ror - The RemoteObjectReference of the object to be looked up.
Returns:
The local object.

toString

public java.lang.String toString()
Returns a string representation of the objects and references contained in the ReferenceModule.

Overrides:
toString in class java.lang.Object
Returns:
String a String representation of the object contain in the table.
See Also:
Object.toString()