All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class replica.RemoteObjectControl

java.lang.Object
   |
   +----replica.RemoteObjectControl

public class RemoteObjectControl
extends Object
This class is only important if you want to add your own replication strategy. It provides all necessary methods to access a Remote-Object.

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

Variable Index

 o ownHostname
This variable contains the name of the actual computer.
 o ownPort
This variable contains the number of the port this process is listening on.

Constructor Index

 o RemoteObjectControl()

Method Index

 o assynchronMultiRMI(RemoteObjectReference[], EventDescMethodCall)
This method provides an assynchron RMI for more than one object.
 o assynchronRMI(RemoteObjectReference, EventDescMethodCall)
This method provides an assynchron RMI.
 o receiveARMIResult(ObjectTransmissionControl)
With this method it is possible to receive the result of an asssynchron RMI.
 o receiveMultiARMIResults(Object[])
With this method it is possible to receive the result of multi asssynchron RMI.
 o sendLockMessage(RemoteObjectReference, EventDescObjectLock)
This method sends a lock message to a Remote-Object.
 o sendMultiLockMessage(RemoteObjectReference[], EventDescObjectLock)
This method sends a lock message to more than one Remote-Object.
 o synchronMultiRMI(RemoteObjectReference[], EventDescMethodCall)
This method provides an synchron RMI for more than one object.
 o synchronRMI(RemoteObjectReference, EventDescMethodCall)
This method provides an synchron RMI.

Variables

 o ownHostname
 public static String ownHostname
This variable contains the name of the actual computer.

 o ownPort
 public static int ownPort
This variable contains the number of the port this process is listening on.

Constructors

 o RemoteObjectControl
 public RemoteObjectControl()

Methods

 o assynchronRMI
 public static ObjectTransmissionControl assynchronRMI(RemoteObjectReference remRef,
                                                       EventDescMethodCall event) throws RemoteAccessException
This method provides an assynchron RMI.

Parameters:
remRef - Unique ID of the Remote-Object.
event - Description of the method to call.
Returns:
A handle with which it is possible to receive the result.
Throws: RemoteAccessException
Thrown if the Remote-Object could not be accessed.
 o receiveARMIResult
 public static Object receiveARMIResult(ObjectTransmissionControl otc) throws RemoteAccessException
With this method it is possible to receive the result of an asssynchron RMI.

Parameters:
otc - The handle returned from the method assynchronRMI.
Returns:
The result
Throws: RemoteAccessException
Thrown if the Remote-Object could not be accessed.
 o assynchronMultiRMI
 public static Object[] assynchronMultiRMI(RemoteObjectReference remRef[],
                                           EventDescMethodCall event)
This method provides an assynchron RMI for more than one object.

Parameters:
remRef - Unique IDs of the Remote-Objects.
event - Description of the method to call.
Returns:
A handle with which it is possible to receive the results.
 o receiveMultiARMIResults
 public static Object[] receiveMultiARMIResults(Object obj[])
With this method it is possible to receive the result of multi asssynchron RMI.

Parameters:
otc - The handle returned from the method assynchronMultiRMI.
Returns:
The results or the exceptions
 o synchronRMI
 public static Object synchronRMI(RemoteObjectReference remRef,
                                  EventDescMethodCall event) throws RemoteAccessException
This method provides an synchron RMI.

Parameters:
remRef - Unique ID of the Remote-Object.
event - Description of the method to call.
Returns:
The result
Throws: RemoteAccessException
Thrown if the Remote-Object could not be accessed.
 o synchronMultiRMI
 public static Object[] synchronMultiRMI(RemoteObjectReference remRef[],
                                         EventDescMethodCall event)
This method provides an synchron RMI for more than one object.

Parameters:
remRef - Unique IDs of the Remote-Objects.
event - Description of the method to call.
Returns:
The results or the exceptions
 o sendLockMessage
 public static void sendLockMessage(RemoteObjectReference remRef,
                                    EventDescObjectLock event) throws RemoteAccessException
This method sends a lock message to a Remote-Object.

Parameters:
remRef - Unique ID of the Remote-Object.
event - Description of the lock event.
Throws: RemoteAccessException
Thrown if the Remote-Object could not be accessed.
 o sendMultiLockMessage
 public static Throwable[] sendMultiLockMessage(RemoteObjectReference remRef[],
                                                EventDescObjectLock event)
This method sends a lock message to more than one Remote-Object.

Parameters:
remRef - Unique IDs of the Remote-Objects.
event - Description of the lock event.
Returns:
Exceptions thrown from the different Remote-Objects.

All Packages  Class Hierarchy  This Package  Previous  Next  Index