nathan.middleware
Class RemoteObjectReference

java.lang.Object
  extended by nathan.middleware.RemoteObjectReference
All Implemented Interfaces:
java.io.Serializable

public class RemoteObjectReference
extends java.lang.Object
implements java.io.Serializable

RemoteObjectReference is used to represent a remote object in the distributed system. The Remote Reference is used to access remote objects.

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

Constructor Summary
RemoteObjectReference()
          Creates a new instance of RepresentationOfRemoteObject
RemoteObjectReference(java.net.InetAddress aAddress, int aPort, java.lang.String name, java.lang.String implementationClassName)
          Creates a new instance of RepresentationOfRemoteObject
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares if two RemoteObjectReferences are equal.
 java.net.InetAddress getAddress()
          Get the remote refernces address.
 java.lang.String getImplementationClass()
          Get the implemetation class.
 java.lang.String getName()
          The name of the remote reference.
 int getObjectID()
          Get the id number of the reference.
 int getPort()
          Get the port number of the remote reference.
 java.util.Date getTimeCreated()
          Get the time that the remote reference was created.
 int hashCode()
          Gets the hash code for a RemoteObjectReference.
 void setImplementationClass(java.lang.String implementationClass)
          Set the implemetation class.
 java.lang.String toString()
          Returns a String representation of a RemoteObjectReference.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteObjectReference

public RemoteObjectReference()
Creates a new instance of RepresentationOfRemoteObject


RemoteObjectReference

public RemoteObjectReference(java.net.InetAddress aAddress,
                             int aPort,
                             java.lang.String name,
                             java.lang.String implementationClassName)
Creates a new instance of RepresentationOfRemoteObject

Parameters:
aAddress - The ip address of the remote reference.
aPort - The port number of the remote reference.
name - The name of the remote reference.
Method Detail

getAddress

public java.net.InetAddress getAddress()
Get the remote refernces address.

Returns:
InetAddress The address where the remote reference is located

getPort

public int getPort()
Get the port number of the remote reference.

Returns:
int The port number of the remote reference.

getObjectID

public int getObjectID()
Get the id number of the reference.

Returns:
int The id of the reference.

getTimeCreated

public java.util.Date getTimeCreated()
Get the time that the remote reference was created.

Returns:
Date The time the reference was created.

getName

public java.lang.String getName()
The name of the remote reference.

Returns:
String the name of the reference.

getImplementationClass

public java.lang.String getImplementationClass()
Get the implemetation class.

Returns:
Returns the implementationClass.

setImplementationClass

public void setImplementationClass(java.lang.String implementationClass)
Set the implemetation class.

Parameters:
implementationClass - The implementationClass to set.

hashCode

public int hashCode()
Gets the hash code for a RemoteObjectReference.

Overrides:
hashCode in class java.lang.Object
Returns:
int The has code for a RemoteObjectReference.
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object o)
Compares if two RemoteObjectReferences are equal.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to compare for equality.
Returns:
boolean Returns true if two RemoteObjectReferences are equal.
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Returns a String representation of a RemoteObjectReference.

Overrides:
toString in class java.lang.Object
Returns:
String The String representation of a RemoteObjectReference.
See Also:
Object.toString()