ix.util
Class IPC.ObjectStreamCommunicationStrategy

java.lang.Object
  |
  +--ix.util.IPC.ObjectStreamCommunicationStrategy
All Implemented Interfaces:
IPC.CommunicationStrategy, IPC.SocketlikeCommunicationStrategy
Direct Known Subclasses:
IPC.SimpleIXCommunicationStrategy, IPC.XMLObjectStreamCommunicationStrategy
Enclosing class:
IPC

public static class IPC.ObjectStreamCommunicationStrategy
extends java.lang.Object
implements IPC.SocketlikeCommunicationStrategy

A communication strategy in which a destination is mapped to a host and port number, and objects are sent by writing their serialization to a socket.


Field Summary
(package private)  java.util.HashMap connectionTable
           
(package private)  IPC.DestinationTable destinationTable
           
 
Constructor Summary
IPC.ObjectStreamCommunicationStrategy()
           
 
Method Summary
 IPC.Connection connectTo(java.lang.Object destination)
           
 void discardConnection(java.lang.Object destination)
           
 IPC.Connection getConnection(java.lang.Object destination)
           
 java.lang.Object getDestinationData(java.lang.Object destination)
           
 void sendObject(java.lang.Object destination, java.lang.Object contents)
           
 void setDestinationData(java.lang.Object destination, java.lang.Object data)
          The data must be a ServiceAddress.
 void setDestinationTable(IPC.DestinationTable table)
           
 void setupServer(java.lang.Object destination, IPC.MessageListener listener)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destinationTable

IPC.DestinationTable destinationTable

connectionTable

java.util.HashMap connectionTable
Constructor Detail

IPC.ObjectStreamCommunicationStrategy

public IPC.ObjectStreamCommunicationStrategy()
Method Detail

setDestinationData

public void setDestinationData(java.lang.Object destination,
                               java.lang.Object data)
The data must be a ServiceAddress.
Specified by:
setDestinationData in interface IPC.SocketlikeCommunicationStrategy

getDestinationData

public java.lang.Object getDestinationData(java.lang.Object destination)
Specified by:
getDestinationData in interface IPC.SocketlikeCommunicationStrategy

setDestinationTable

public void setDestinationTable(IPC.DestinationTable table)

connectTo

public IPC.Connection connectTo(java.lang.Object destination)
Specified by:
connectTo in interface IPC.SocketlikeCommunicationStrategy

getConnection

public IPC.Connection getConnection(java.lang.Object destination)
Specified by:
getConnection in interface IPC.SocketlikeCommunicationStrategy

sendObject

public void sendObject(java.lang.Object destination,
                       java.lang.Object contents)
Specified by:
sendObject in interface IPC.CommunicationStrategy

discardConnection

public void discardConnection(java.lang.Object destination)

setupServer

public void setupServer(java.lang.Object destination,
                        IPC.MessageListener listener)
Specified by:
setupServer in interface IPC.CommunicationStrategy