All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class replica.PassiveReplication

java.lang.Object
   |
   +----replica.AccessTransmitStrategy
           |
           +----replica.ReplicationStrategy
                   |
                   +----replica.PassiveReplication

public class PassiveReplication
extends ReplicationStrategy
This class is the Strategy-Object for passive replicated objects.

Version:
1.0
Author:
Markus Jäger
See Also:
AccessControlObject

Variable Index

 o MODE_UPDATE_AFTER_RW
If this constant is used as an argument of the constructor, the new state is reported to the snooper after the Read-Write-Access is over.
 o MODE_UPDATE_DURING_RW
If this constant is used as an argument of the constructor, every state change during a Read-Write-Access is reported to the snooper.

Constructor Index

 o PassiveReplication()
Construct a PassiveReplication object.
 o PassiveReplication(int)
Construct a PassiveReplication object.

Method Index

 o acpuireLock(Object, EventDescObjectLock)
This method is only important if you want to add your own replication strategy.
 o doFinalInit(AccessControlObject, Object, UniqueID)
This method is only important if you want to add your own replication strategy.
 o getObjectID()
This method is only important if you want to add your own replication strategy.
 o informSnooper(EventDescFieldAccess)
 o readField(Object, EventDescFieldAccess)
This method is only important if you want to add your own replication strategy.
 o registerForFieldAccess()
This method is only important if you want to add your own replication strategy.
 o registerForObjectLock()
This method is only important if you want to add your own replication strategy.
 o releaseLock(Object, EventDescObjectLock)
This method is only important if you want to add your own replication strategy.
 o setField(EventDescFieldAccess)
 o transmitObject(ObjectTransmissionControl, Object)
This method is only important if you want to add your own replication strategy.
 o writeField(Object, EventDescFieldAccess)
This method is only important if you want to add your own replication strategy.

Variables

 o MODE_UPDATE_DURING_RW
 public static final int MODE_UPDATE_DURING_RW
If this constant is used as an argument of the constructor, every state change during a Read-Write-Access is reported to the snooper. (If this object is used for locking purpose, this is not always true. For details please read the API User's Guide.)

 o MODE_UPDATE_AFTER_RW
 public static final int MODE_UPDATE_AFTER_RW
If this constant is used as an argument of the constructor, the new state is reported to the snooper after the Read-Write-Access is over. Read-Write-Access is over if there is either global Read-Access or an other cite gets Read-Write-Access.

Constructors

 o PassiveReplication
 public PassiveReplication()
Construct a PassiveReplication object. The update mode is MODE_UPDATE_AFTER_RW.

 o PassiveReplication
 public PassiveReplication(int mode)
Construct a PassiveReplication object.

Parameters:
mode - The update mode

Methods

 o doFinalInit
 protected void doFinalInit(AccessControlObject newControl,
                            Object obj,
                            UniqueID newID)
This method is only important if you want to add your own replication strategy.

Overrides:
doFinalInit in class AccessTransmitStrategy
 o getObjectID
 protected RemoteObjectReference getObjectID()
This method is only important if you want to add your own replication strategy.

Overrides:
getObjectID in class AccessTransmitStrategy
 o registerForFieldAccess
 protected boolean registerForFieldAccess()
This method is only important if you want to add your own replication strategy.

Overrides:
registerForFieldAccess in class AccessTransmitStrategy
 o registerForObjectLock
 protected boolean registerForObjectLock()
This method is only important if you want to add your own replication strategy.

Overrides:
registerForObjectLock in class AccessTransmitStrategy
 o transmitObject
 protected void transmitObject(ObjectTransmissionControl tCont,
                               Object obj) throws IOException
This method is only important if you want to add your own replication strategy.

Overrides:
transmitObject in class AccessTransmitStrategy
 o readField
 protected Object readField(Object o,
                            EventDescFieldAccess event)
This method is only important if you want to add your own replication strategy.

Overrides:
readField in class AccessTransmitStrategy
 o writeField
 protected void writeField(Object o,
                           EventDescFieldAccess event)
This method is only important if you want to add your own replication strategy.

Overrides:
writeField in class AccessTransmitStrategy
 o acpuireLock
 protected void acpuireLock(Object o,
                            EventDescObjectLock event) throws RemoteAccessException
This method is only important if you want to add your own replication strategy.

Overrides:
acpuireLock in class AccessTransmitStrategy
 o releaseLock
 protected void releaseLock(Object o,
                            EventDescObjectLock event) throws RemoteAccessException
This method is only important if you want to add your own replication strategy.

Overrides:
releaseLock in class AccessTransmitStrategy
 o informSnooper
 protected void informSnooper(EventDescFieldAccess event)
 o setField
 protected void setField(EventDescFieldAccess event)

All Packages  Class Hierarchy  This Package  Previous  Next  Index