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
-
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.
-
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.
-
PassiveReplication()
- Construct a PassiveReplication object.
-
PassiveReplication(int)
- Construct a PassiveReplication object.
-
acpuireLock(Object, EventDescObjectLock)
- This method is only important if you want to add your own replication strategy.
-
doFinalInit(AccessControlObject, Object, UniqueID)
- This method is only important if you want to add your own replication strategy.
-
getObjectID()
-
This method is only important if you want to add your own replication strategy.
-
informSnooper(EventDescFieldAccess)
-
-
readField(Object, EventDescFieldAccess)
- This method is only important if you want to add your own replication strategy.
-
registerForFieldAccess()
- This method is only important if you want to add your own replication strategy.
-
registerForObjectLock()
- This method is only important if you want to add your own replication strategy.
-
releaseLock(Object, EventDescObjectLock)
- This method is only important if you want to add your own replication strategy.
-
setField(EventDescFieldAccess)
-
-
transmitObject(ObjectTransmissionControl, Object)
-
This method is only important if you want to add your own replication strategy.
-
writeField(Object, EventDescFieldAccess)
- This method is only important if you want to add your own replication strategy.
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.)
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.
PassiveReplication
public PassiveReplication()
- Construct a PassiveReplication object. The update mode is MODE_UPDATE_AFTER_RW.
PassiveReplication
public PassiveReplication(int mode)
- Construct a PassiveReplication object.
- Parameters:
- mode - The update mode
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
getObjectID
protected RemoteObjectReference getObjectID()
- This method is only important if you want to add your own replication strategy.
- Overrides:
- getObjectID in class AccessTransmitStrategy
registerForFieldAccess
protected boolean registerForFieldAccess()
- This method is only important if you want to add your own replication strategy.
- Overrides:
- registerForFieldAccess in class AccessTransmitStrategy
registerForObjectLock
protected boolean registerForObjectLock()
- This method is only important if you want to add your own replication strategy.
- Overrides:
- registerForObjectLock in class AccessTransmitStrategy
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
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
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
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
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
informSnooper
protected void informSnooper(EventDescFieldAccess event)
setField
protected void setField(EventDescFieldAccess event)
All Packages Class Hierarchy This Package Previous Next Index