uka.karmi.rmi.server
Class ReplicaStub

java.lang.Object
  extended byuka.karmi.rmi.server.ReplicaStub
All Implemented Interfaces:
Anonymous, Immutable, PatchableRoot, Replicated, java.io.Serializable

public class ReplicaStub
extends java.lang.Object
implements Replicated, Immutable, java.io.Serializable

Represents a reference to a ReplicatedObject while in transit in a remote method invocation.

Author:
Bernhard Haumacher
See Also:
Serialized Form

Field Summary
protected  SingleRemoteClientRef[] replica
           
 
Constructor Summary
ReplicaStub(ReplicatedServerRef ref)
           
 
Method Summary
 ReplicatedServerRef findLocalReplica()
           
 java.lang.Object getOwner()
          Return the root object this object belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

replica

protected SingleRemoteClientRef[] replica
Constructor Detail

ReplicaStub

public ReplicaStub(ReplicatedServerRef ref)
Method Detail

findLocalReplica

public ReplicatedServerRef findLocalReplica()
                                     throws RemoteException
Throws:
RemoteException

getOwner

public final java.lang.Object getOwner()
Description copied from interface: PatchableRoot
Return the root object this object belongs to. The replicated state of a replicated object extends to all objects that are reacheable through non-transient references from the replicated root object. The traversal ends at objects implementing PatchableRoot, if the PatchableRoot.getOwner() method returns another object than the current replicated object.

Specified by:
getOwner in interface PatchableRoot
See Also:
PatchableRoot#getOwner