uka.karmi.rmi
Class ObjectId

java.lang.Object
  extended byuka.karmi.rmi.ObjectId
All Implemented Interfaces:
Anonymous, java.lang.Cloneable, Immutable, java.io.Serializable

public class ObjectId
extends java.lang.Object
implements Immutable, java.lang.Cloneable, java.io.Serializable

An object identifier addresses a remote object and all its proxy objects. The object identifier is a list of addresses shown in the following diagram:

              next              next
    ObjectId -------> ObjectId -....-> null
       |                 | 
       | utid            | utid
       |                 | 
       v                 v
      UTID              UTID
       |                 | 
       | next            | next
       |                 | 
       v                 v
      UTID              UTID
       .                 .
       . next            . next
       v                 v
      null              null
 

The first column represents the address space of the server implementation. The other columns are addresses of proxy objects.

An export point in a remote address space can be reached over one or more technologies. All suitable technologies are linked together in a row.

If the server implementation is local, the first UTID in the first column directly references a local export point via its UTID.ep member.

To communicate with the referenced remote object it is necessary to support at least one referenced technology. To access the remote object, the matching UTID and the ObjectId at the top of the corresponding column is used.

There are no two UTID objects that belong to the same technology domain.

Objects of this class are sent over the network by KaRMI.

Author:
Christian Nester, Bernhard Haumacher
See Also:
Serialized Form

Field Summary
 ObjectId next
           
 int objectId
           
 int objectId2
           
 UTID utid
           
 
Constructor Summary
ObjectId()
           
ObjectId(int objectId, int objectId2)
           
ObjectId(int objectId, int objectId2, UTID utid)
           
ObjectId(int objectId, int objectId2, UTID utid, ObjectId next)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String toString()
           
 java.lang.String toStringMembers()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

objectId

public int objectId

objectId2

public int objectId2

utid

public UTID utid

next

public ObjectId next
Constructor Detail

ObjectId

public ObjectId()

ObjectId

public ObjectId(int objectId,
                int objectId2)

ObjectId

public ObjectId(int objectId,
                int objectId2,
                UTID utid)

ObjectId

public ObjectId(int objectId,
                int objectId2,
                UTID utid,
                ObjectId next)
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

equals

public boolean equals(java.lang.Object obj)

toStringMembers

public java.lang.String toStringMembers()

toString

public java.lang.String toString()