| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Transport for messages. Overload toString to give some info on the transport layer. Synchronization groupings:
( [open, close, isOpen, (sendMessage, recvMessage)], establishAssociation )
| Method Summary | |
|  void | close()Close the connection. | 
|  boolean | establishAssociation(Address addr,
                     TransportAssociationHolder binding)Check for applicability of channel for carrying messages for the specified address and setup any client transport binding. | 
|  boolean | isOpen()Is is the transport open? | 
|  void | open()Open the connection. | 
|  StorageBuffer | recvMessage(int timeout,
            TransportAssociationHolder assoc)Read next message. | 
|  void | sendMessage(StorageBuffer msg,
            java.lang.Object assoc)Write message to comms protocol. | 
| Method Detail | 
public void open()
COMM_FAILURE - failed to open channel. This exception
   will be reported to clients.public void close()
public boolean isOpen()
public void sendMessage(StorageBuffer msg,
                        java.lang.Object assoc)
msg - The message to be sent.binding - contains whatever was associated with the ClientBinding 
      in the establishBinding operation or with the ServerRequest in the 
      recvMessage operation.COMM_FAILURE - Transport failure occoured.
public StorageBuffer recvMessage(int timeout,
                                 TransportAssociationHolder assoc)
                          throws java.io.EOFException
timeout - max time to wait before recieving a message. If 0 wait 
   until the read occours or the thread performing the read is interrupted.assoc - (out) will be set to contain the transport association for the 
   message. This will be passed back to sendMessage when a reply is sent 
   for server requests. For client replies the contents will be 
   compared to the ClientBinding's association, if they don't match some
   action will be taken.java.io.EOFException - end of file has been reached. This is an orderly 
      shutdown.COMM_FAILURE - Transport failure occoured. This is a 
      disorderly shutdown.
public boolean establishAssociation(Address addr,
                                    TransportAssociationHolder binding)
addr - the address.assoc - (out) will be set to contain the transport association for
   the client binding. This will be passed back to sendMessage when a
   request is sent.| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||