|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.karmi.rmi.server.ReplicatedObject
| Field Summary | |
private static int |
DEFAULT_FANOUT
|
ReplicatedServerRef |
serverRef
|
| Constructor Summary | |
protected |
ReplicatedObject(RemoteStub[] distribution)
|
protected |
ReplicatedObject(RemoteStub[] distribution,
Distributor distributor)
|
| Method Summary | |
SingleRemoteClientRef |
_exportReplica(PartitionedObjectSpace objects,
int rank)
Exports a new replica that has just arrived at the current node during the distribution process. |
void |
appendTo(ToString s)
This method should append the contents of each instance variable of the current
object to the given ToString object. |
void |
barrier()
|
void |
barrier(int fanout)
Collective synchronize on this replicated object without any data exchange. |
void |
collectiveUpdate()
|
void |
distributeTo(java.lang.Object obj,
boolean[] ranks)
|
void |
distributeTo(java.lang.Object obj,
int[] ranks)
|
java.lang.Object[] |
exchange(java.lang.Object[] args)
Exchange data among cooperating threads. |
void |
exclusiveUpdate()
|
ReplicaDiagnostics |
getDiagnostics()
|
java.lang.Object |
getOwner()
Return the root object this object belongs to. |
int |
getRank()
|
int |
getSize()
|
boolean |
isReadOnly(java.lang.Object object)
|
void |
postAcquireExclusiveLock(java.lang.Object lock)
|
void |
postReleaseExclusiveLock(java.lang.Object lock)
|
java.lang.Object |
preAcquireExclusiveLock()
|
void |
preReleaseExclusiveLock(java.lang.Object lock)
|
void |
replicatedNotify()
|
void |
replicatedWait()
|
void |
setReadOnly(java.lang.Object object,
boolean value)
Mark the passed object as read-only. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public transient ReplicatedServerRef serverRef
private static final int DEFAULT_FANOUT
| Constructor Detail |
protected ReplicatedObject(RemoteStub[] distribution)
throws RemoteException
protected ReplicatedObject(RemoteStub[] distribution,
Distributor distributor)
throws RemoteException
| Method Detail |
public SingleRemoteClientRef _exportReplica(PartitionedObjectSpace objects,
int rank)
throws RemoteException
RemoteExceptionTechnology.serviceCreateReplicaBody(uka.patch.PartitionedObjectSpace, java.lang.Object, int),
ReplicatedServerRef.updateReferences(uka.karmi.rmi.SingleRemoteClientRef[])public ReplicaDiagnostics getDiagnostics()
public java.lang.Object preAcquireExclusiveLock()
throws RemoteException
RemoteException
public void postAcquireExclusiveLock(java.lang.Object lock)
throws RemoteException
RemoteException
public void replicatedWait()
throws java.lang.InterruptedException,
RemoteException
java.lang.InterruptedException
RemoteExceptionpublic void replicatedNotify()
public void preReleaseExclusiveLock(java.lang.Object lock)
throws RemoteException
RemoteException
public void postReleaseExclusiveLock(java.lang.Object lock)
throws RemoteException
RemoteException
public void exclusiveUpdate()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void collectiveUpdate()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object[] exchange(java.lang.Object[] args)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionReplicatedServerRef.exchange(java.lang.Object[])
public void barrier()
throws java.lang.InterruptedException,
RemoteException
java.lang.InterruptedException
RemoteExceptionbarrier(int)
public final void barrier(int fanout)
throws java.lang.InterruptedException,
RemoteException
java.lang.InterruptedException
RemoteExceptionReplicatedServerRef.barrier(int)
public void distributeTo(java.lang.Object obj,
int[] ranks)
ReplicatedServerRef.distributeTo(java.lang.Object, int[])
public void distributeTo(java.lang.Object obj,
boolean[] ranks)
ReplicatedServerRef.distributeTo(java.lang.Object, int[])public int getRank()
public int getSize()
public final java.lang.Object getOwner()
PatchableRootPatchableRoot, if the PatchableRoot.getOwner() method returns
another object than the current replicated object.
getOwner in interface PatchableRootPatchableRoot.getOwner()public void appendTo(ToString s)
Printableappend the contents of each instance variable of the current
object to the given ToString object. The appended data
should be labeled with the name of the corresponding instance
variable.
appendTo in interface PrintableToString,
ToString.append(String, Object),
ToString.append(String, boolean),
ToString.append(String, byte),
ToString.append(String, int)
public void setReadOnly(java.lang.Object object,
boolean value)
public boolean isReadOnly(java.lang.Object object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||