All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class replica.ObjectTransmissionControl

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

public class ObjectTransmissionControl
extends Object
This class is only important if you want to add your own replication strategy. It provides all necessary methods to transmit and receive an object. (In this version the transmission of floats is disabled.)

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

Constructor Index

 o ObjectTransmissionControl(Socket)
Create an ObjectTransmissionControl.

Method Index

 o sendArray(Object)
This method is used to transmit an array.
 o sendMultiROR(Object, RemoteObjectReference[])
This method is used to transmit an object as a multiple stub.
 o sendObject(Object)
This method is used to transmit an object.
 o sendObjectCopy(Object)
This method is used to transmit an object as a copy.
 o sendObjectReplica(Object, ReplicaInstaller)
This method is used to transmit an object as replica.
 o sendROR(Object, RemoteObjectReference)
This method is used to transmit an object as a stub.
 o sendSystemObject(Object, RemoteObjectReference)
This method is used to transmit an object as a System-Object.

Constructors

 o ObjectTransmissionControl
 public ObjectTransmissionControl(Socket socket) throws IOException
Create an ObjectTransmissionControl.

Parameters:
socket - The socket over which the objects should be transmitted/received.
Throws: IOException
Thrown if the ObjectTransmissionControl could not be created.

Methods

 o sendObject
 public void sendObject(Object obj) throws IOException
This method is used to transmit an object.

Parameters:
obj - The object to transmit
Throws: IOException
Thrown if the Object could not be transmitted.
 o sendObjectCopy
 public void sendObjectCopy(Object obj) throws IOException
This method is used to transmit an object as a copy.

Parameters:
obj - The object to transmit
Throws: IOException
Thrown if the Object could not be transmitted.
 o sendROR
 public void sendROR(Object obj,
                     RemoteObjectReference remRef) throws IOException
This method is used to transmit an object as a stub.

Parameters:
obj - The object to transmit
remRef - The unique ID of the Remote-Object.
Throws: IOException
Thrown if the Object could not be transmitted.
 o sendMultiROR
 public void sendMultiROR(Object obj,
                          RemoteObjectReference refs[]) throws IOException
This method is used to transmit an object as a multiple stub.

Parameters:
obj - The object to transmit
refs - The unique IDs of the Remote-Objects.
Throws: IOException
Thrown if the Object could not be transmitted.
 o sendObjectReplica
 public void sendObjectReplica(Object obj,
                               ReplicaInstaller inst) throws IOException
This method is used to transmit an object as replica.

Parameters:
obj - The object to transmit
inst - The Install-Object which installs the replica.
Throws: IOException
Thrown if the Object could not be transmitted.
 o sendSystemObject
 public void sendSystemObject(Object obj,
                              RemoteObjectReference id) throws IOException
This method is used to transmit an object as a System-Object.

Parameters:
obj - The object to transmit
id - The unique ID of the System-Object.
Throws: IOException
Thrown if the Object could not be transmitted.
 o sendArray
 public void sendArray(Object obj) throws IOException
This method is used to transmit an array.

Parameters:
obj - The array to transmit
Throws: IOException
Thrown if the Object could not be transmitted.

All Packages  Class Hierarchy  This Package  Previous  Next  Index