|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransportSupport
Defines the operations to bind an entity, whose Locator is given to the specified transport and to send messages via a given transport.
Method Summary | |
---|---|
void |
bindMsgListenerToTransport(MessageListener listener,
java.lang.String listenerName,
Locator locator,
java.lang.String transportName)
Bind the specified MessageListener to the given Locator. |
MessageReceiver |
bindToTransport(java.lang.String receiverName,
Locator receiverLocator,
java.lang.String transportName)
|
Locator |
createLocator(java.lang.String name,
JasBean agentInitInfo,
java.lang.String transportName)
|
KAoSServiceRoot |
getServiceRoot(java.lang.String transportName)
Return KAoSServiceRoot for the specified transportName. |
java.util.List |
getSupportedTransportsNames()
Return the names of the currently supported transports. |
boolean |
isTransportSupported(java.lang.String name)
Answer true if the given transport is supported, otherwise, answer false. |
void |
sendMessageTo(Locator senderLocator,
Locator receiverLocator,
java.lang.String senderName,
java.lang.String receiverName,
java.lang.String fipaPerformative,
java.io.Serializable content)
Send the given message content to the receiver, whose Locator is given. |
void |
sendMessageTo(Locator senderLocator,
Locator receiverLocator,
java.lang.String senderName,
java.lang.String receiverName,
java.lang.String fipaPerformative,
java.io.Serializable content,
java.lang.String transportName)
Send the given message content to the receiver, whose Locator is given. |
Method Detail |
---|
Locator createLocator(java.lang.String name, JasBean agentInitInfo, java.lang.String transportName)
void bindMsgListenerToTransport(MessageListener listener, java.lang.String listenerName, Locator locator, java.lang.String transportName) throws NotLocatableException, TransportFailure
listener
- MessageListener to receive messages using the given Locator.listenerName
- String containing the name of the receiver.locator
- Locator to be used to receive messages.transportName
- String indicating which transport to use
NotLocatableException
- if locator is not a local locator.
TransportFailure
- if the binding process failsMessageReceiver bindToTransport(java.lang.String receiverName, Locator receiverLocator, java.lang.String transportName) throws NotLocatableException, TransportFailure
NotLocatableException
TransportFailure
void sendMessageTo(Locator senderLocator, Locator receiverLocator, java.lang.String senderName, java.lang.String receiverName, java.lang.String fipaPerformative, java.io.Serializable content, java.lang.String transportName) throws NotLocatableException, TransportFailure
senderLocator
- Locator of the sender.receiverLocator
- Locator of the receiver.senderName
- String containing the name of the sender.receiverName
- String containing the name of the receiver.fipaPerformative
- String containing the FIPA performative describing the message intent.content
- Serializable containing the message content.transportName
- String containing the name of the transport to be used.
NotLocatableException
- if the receiver cannot be located.
TransportFailure
- if transport fails during message send.void sendMessageTo(Locator senderLocator, Locator receiverLocator, java.lang.String senderName, java.lang.String receiverName, java.lang.String fipaPerformative, java.io.Serializable content) throws NotLocatableException, TransportFailure
senderLocator
- Locator of the sender.receiverLocator
- Locator of the receiver.senderName
- String containing the name of the sender.receiverName
- String containing the name of the receiver.fipaPerformative
- String containing the FIPA performative describing the message intent.content
- Serializable containing the message content.
NotLocatableException
- if the receiver cannot be located.
TransportFailure
- if transport fails during message send.java.util.List getSupportedTransportsNames()
boolean isTransportSupported(java.lang.String name)
name
- String containing the name of the transport in question.
KAoSServiceRoot getServiceRoot(java.lang.String transportName)
transportName
- String containing the name of the transport to create a KAoSServiceRoot for.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |