public interface Transport
( [open, close, isOpen, (sendMessage, recvMessage)], establishAssociation )
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
boolean |
establishAssociation(Address addr)
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)
Read next message.
|
void |
sendMessage(StorageBuffer msg)
Write message to comms protocol.
|
void open()
org.omg.CORBA.COMM_FAILURE - failed to open channel. This exception
will be reported to clients.void close()
boolean isOpen()
void sendMessage(StorageBuffer msg)
msg - The message to be sent.org.omg.CORBA.COMM_FAILURE - Transport failure occurred.StorageBuffer recvMessage(int timeout) 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.java.io.EOFException - end of file has been reached. This is an orderly
shutdown.org.omg.CORBA.COMM_FAILURE - Transport failure occoured. This is a
disorderly shutdown.boolean establishAssociation(Address addr)
addr - the address.