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
-
ObjectTransmissionControl(Socket)
- Create an ObjectTransmissionControl.
-
sendArray(Object)
- This method is used to transmit an array.
-
sendMultiROR(Object, RemoteObjectReference[])
- This method is used to transmit an object as a multiple stub.
-
sendObject(Object)
- This method is used to transmit an object.
-
sendObjectCopy(Object)
- This method is used to transmit an object as a copy.
-
sendObjectReplica(Object, ReplicaInstaller)
- This method is used to transmit an object as replica.
-
sendROR(Object, RemoteObjectReference)
- This method is used to transmit an object as a stub.
-
sendSystemObject(Object, RemoteObjectReference)
- This method is used to transmit an object as a System-Object.
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.
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.
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.
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.
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.
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.
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.
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