All Packages Class Hierarchy This Package Previous Next Index
Class replica.AccessTransmitStrategy
java.lang.Object
|
+----replica.AccessTransmitStrategy
- public abstract class AccessTransmitStrategy
- extends Object
This class is the Superclass of all Strategy-Objects which can be attached to a
Base-Object.
- Version:
- 1.0
- Author:
- Markus Jäger
- See Also:
- AccessControlObject
-
control
-
This variable is only important if you want to add your own replication strategy.
-
objectID
- This variable is only important if you want to add your own replication strategy.
-
AccessTransmitStrategy()
-
-
acpuireLock(Object, EventDescObjectLock)
- This method is only important if you want to add your own replication strategy.
-
callMethod(Object, EventDescMethodCall)
- 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.
-
newObject(Object, EventDescNewObject)
- This method is only important if you want to add your own replication strategy.
-
outCall(Object, EventDescOutCall)
- This method is only important if you want to add your own replication strategy.
-
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.
-
registerForMethodCalls()
- This method is only important if you want to add your own replication strategy.
-
registerForObjectCreation()
- 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.
-
registerForOutCalls()
- 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.
-
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.
control
protected AccessControlObject control
- This variable is only important if you want to add your own replication strategy.
It represents the AccessControlObject to which this Strategy-Object belongs.
objectID
protected RemoteObjectReference objectID
- This variable is only important if you want to add your own replication strategy.
It represents the ID of this Strategy-Object.
AccessTransmitStrategy
public AccessTransmitStrategy()
doFinalInit
protected void doFinalInit(AccessControlObject newControl,
Object obj,
UniqueID newID)
- This method is only important if you want to add your own replication strategy.
It is used do finally initialize the strategy object
- Parameters:
- newControl - The AccessControlObject
- obj - The Base-Object
- newID - The ID of this Strategy-Object
getObjectID
protected RemoteObjectReference getObjectID()
- This method is only important if you want to add your own replication strategy.
It is used to determin the Object ID
- Returns:
- The ID of this Strategy-Object
registerForMethodCalls
protected boolean registerForMethodCalls()
- This method is only important if you want to add your own replication strategy.
It indivates weather this Strategy-Object wants to receive MethodCall
events from the RuntimeSystem.
registerForObjectLock
protected boolean registerForObjectLock()
- This method is only important if you want to add your own replication strategy.
It indivates weather this Strategy-Object wants to receive ObjectLock
events from the RuntimeSystem.
registerForFieldAccess
protected boolean registerForFieldAccess()
- This method is only important if you want to add your own replication strategy.
It indivates weather this Strategy-Object wants to receive FieldAccess
events from the RuntimeSystem.
registerForOutCalls
protected boolean registerForOutCalls()
- This method is only important if you want to add your own replication strategy.
It indivates weather this Strategy-Object wants to receive OutCall
events from the RuntimeSystem.
registerForObjectCreation
protected boolean registerForObjectCreation()
- This method is only important if you want to add your own replication strategy.
It indivates weather this Strategy-Object wants to receive ObjectCreation
events from the RuntimeSystem.
transmitObject
protected void transmitObject(ObjectTransmissionControl tCont,
Object obj) throws IOException
- This method is only important if you want to add your own replication strategy.
It is used to transmit an object over an ObjectTransmissionControl.
- Parameters:
- tCont - The ObjectTransmissionControl
- obj - The Object to transmit
- Throws: IOException
- Thrown if the Object could not be transmitted.
callMethod
protected Object callMethod(Object o,
EventDescMethodCall event) throws Throwable
- This method is only important if you want to add your own replication strategy.
It is invoked if a CallMethod event occurs.
- Parameters:
- o - Object to invoke the method on
- event - Description of the method call event
- Returns:
- Return value of the invocation
- Throws: Throwable
- Exception of the invocation
acpuireLock
protected void acpuireLock(Object o,
EventDescObjectLock event)
- This method is only important if you want to add your own replication strategy.
It is invoked if an ObjectLock event occurs.
- Parameters:
- o - Object to lock
- Description - of the lock event
releaseLock
protected void releaseLock(Object o,
EventDescObjectLock event)
- This method is only important if you want to add your own replication strategy.
It is invoked if an ObjectLock event occurs.
- Parameters:
- o - Object to lock
- Description - of the lock event
writeField
protected void writeField(Object o,
EventDescFieldAccess event)
- This method is only important if you want to add your own replication strategy.
It is invoked if an AccessField event occurs.
- Parameters:
- o - Object to access
- Description - of the access event
readField
protected Object readField(Object o,
EventDescFieldAccess event)
- This method is only important if you want to add your own replication strategy.
It is invoked if an AccessField event occurs.
- Parameters:
- o - Object to access
- Description - of the access event
outCall
protected Object outCall(Object o,
EventDescOutCall event) throws Throwable
- This method is only important if you want to add your own replication strategy.
It is invoked if an outCall event occurs.
- Parameters:
- o - Object the request comes from.
- Description - of the call event
- Throws: Throwable
- The thrown exception
newObject
protected Object newObject(Object o,
EventDescNewObject event) throws Throwable
- This method is only important if you want to add your own replication strategy.
It is invoked if a newObject event occurs.
- Parameters:
- o - Object the request comes from
- Description - of the event
- Throws: Throwable
- The thrown exception
All Packages Class Hierarchy This Package Previous Next Index