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
-
ownHostname
- This variable contains the name of the actual computer.
-
ownPort
- This variable contains the number of the port this process is listening on.
-
RemoteObjectControl()
-
-
assynchronMultiRMI(RemoteObjectReference[], EventDescMethodCall)
- This method provides an assynchron RMI for more than one object.
-
assynchronRMI(RemoteObjectReference, EventDescMethodCall)
- This method provides an assynchron RMI.
-
receiveARMIResult(ObjectTransmissionControl)
- With this method it is possible to receive the result of an asssynchron RMI.
-
receiveMultiARMIResults(Object[])
- With this method it is possible to receive the result of multi asssynchron RMI.
-
sendLockMessage(RemoteObjectReference, EventDescObjectLock)
- This method sends a lock message to a Remote-Object.
-
sendMultiLockMessage(RemoteObjectReference[], EventDescObjectLock)
- This method sends a lock message to more than one Remote-Object.
-
synchronMultiRMI(RemoteObjectReference[], EventDescMethodCall)
- This method provides an synchron RMI for more than one object.
-
synchronRMI(RemoteObjectReference, EventDescMethodCall)
- This method provides an synchron RMI.
ownHostname
public static String ownHostname
- This variable contains the name of the actual computer.
ownPort
public static int ownPort
- This variable contains the number of the port this process is listening on.
RemoteObjectControl
public RemoteObjectControl()
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.
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.
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.
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
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.
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
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.
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