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

Variable Index

 o control
This variable is only important if you want to add your own replication strategy.
 o objectID
This variable is only important if you want to add your own replication strategy.

Constructor Index

 o AccessTransmitStrategy()

Method Index

 o acpuireLock(Object, EventDescObjectLock)
This method is only important if you want to add your own replication strategy.
 o callMethod(Object, EventDescMethodCall)
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 newObject(Object, EventDescNewObject)
This method is only important if you want to add your own replication strategy.
 o outCall(Object, EventDescOutCall)
This method is only important if you want to add your own replication strategy.
 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 registerForMethodCalls()
This method is only important if you want to add your own replication strategy.
 o registerForObjectCreation()
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 registerForOutCalls()
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 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 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.

 o 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.

Constructors

 o AccessTransmitStrategy
 public AccessTransmitStrategy()

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. It is used do finally initialize the strategy object

Parameters:
newControl - The AccessControlObject
obj - The Base-Object
newID - The ID of this Strategy-Object
 o 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
 o 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.

 o 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.

 o 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.

 o 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.

 o 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.

 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. 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.
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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