nathan.middleware
Class RemoteReferenceModuleClient

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

public class RemoteReferenceModuleClient
extends java.lang.Object

The remote reference module for the client application. The module contains the mapping of locale object to the RemoteObjectReferences of the object.

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)
          Adds a local reference to the reference module.
static RemoteReferenceModuleClient getClientRemoteReference()
          Get the remote reference module.
 java.lang.Object getReference(RemoteObjectReference ror)
          Returns the local object.
 void removeReference(RemoteObjectReference ror)
          Remove a local reference from the table of objects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addReference

public void addReference(RemoteObjectReference ror,
                         java.lang.Object o)
Adds a local reference to the reference module.

Parameters:
ror - The RemoteObjectReference of the local object.
o - The local object.

removeReference

public void removeReference(RemoteObjectReference ror)
Remove a local reference from the table of objects.

Parameters:
ror - The RemoteObjectReference of the object to remove.

getClientRemoteReference

public static RemoteReferenceModuleClient getClientRemoteReference()
Get the remote reference module.

Returns:
RemoteReferenceModuleClient an instance of the reference module.

getReference

public java.lang.Object getReference(RemoteObjectReference ror)
Returns the local object.

Returns:
Returns the lookupLocalReference.