|
||||||||
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)
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. |
Method Detail |
public void open()
org.omg.CORBA.COMM_FAILURE
- failed to open channel. This exception
will be reported to clients.public void close()
public boolean isOpen()
public void sendMessage(StorageBuffer msg)
msg
- The message to be sent.org.omg.CORBA.COMM_FAILURE
- Transport failure occurred.public 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.public boolean establishAssociation(Address addr)
addr
- the address.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |