|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.transport.corba.CorbaMessageSender
public class CorbaMessageSender
The MessageSender is an EndPoint created by a transport service. It is used as the means by which messages are sent from an agent to another agent. The message sending process consists of first binding to a remote message receiver, as specified by a locator, and then invoking the sendMessage() method.
Constructor Summary | |
---|---|
CorbaMessageSender(MessageTransportService service)
|
Method Summary | |
---|---|
void |
bindToRemoteLocator(Locator l)
Binds the MessageSender to a remote endpoint (i.e. |
MessageTransportService |
getMessageTransportService()
|
Locator |
getRemoteLocator()
Returns the remote locator of the endpoint that this MessageSender is bound to. |
void |
sendMessage(TransportMessage msg)
Causes the message to be delivered to the remote endpoint to which the MessageSender is bound. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CorbaMessageSender(MessageTransportService service)
Method Detail |
---|
public MessageTransportService getMessageTransportService() throws TransportFailure
TransportFailure
public void bindToRemoteLocator(Locator l) throws NotLocatableException, TransportFailure
l
- the Locator specifing the remote endpoint.
NotLocatableException
- thrown if l does not correspond to
a remote endpoint.
TransportFailure
- if any transport related failure occurs.public Locator getRemoteLocator() throws NotBoundException, TransportFailure
NotBoundException
- thrown if the MessageSender is not
bound.
TransportFailure
- if any transport related failure occurs.public void sendMessage(TransportMessage msg) throws NotLocatableException, TransportFailure
msg
- the message to deliver to the remote endpoint.
NotLocatableException
- thrown if l does not correspond to
a remote endpoint.
TransportFailure
- if any transport related failure occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |