|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transporter
The Transporter is used to send a MessageExchange
from a Petals container to another one.
The local Router calls
send(exchange,distantContainer) on this Transporter
to send an exchange.
This Transporter sends the MessageExchange to the
distant Transporter.
When the distant Transporter receives the
MessageExchange, it has to call receive(exchange)
on its local Router.
The localization of the distant container is in charge of the
Transporter.
Note that the destination container can be the same than this one.
| Field Summary | |
|---|---|
static java.lang.String |
HTTP_FRACTAL_TRANSPORTER
|
static java.lang.String |
LOCAL_FRACTAL_TRANSPORTER
The list of provided transporter. |
static java.lang.String |
SSL_FRACTAL_TRANSPORTER
|
static java.lang.String |
TCP_FRACTAL_TRANSPORTER
|
| Method Summary | |
|---|---|
void |
send(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
TransportSendContext transportContext)
Send the specified exchange to the specified container. |
void |
sendSync(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
TransportSendContext transportContext)
Send the specified exchange to the specified container and wait until the response is received or the timeout is reached. |
void |
stopTraffic()
Prepare the stopping of the component. |
| Field Detail |
|---|
static final java.lang.String LOCAL_FRACTAL_TRANSPORTER
LOCAL_FRACTAL_TRANSPORTER is supported
static final java.lang.String TCP_FRACTAL_TRANSPORTER
static final java.lang.String SSL_FRACTAL_TRANSPORTER
static final java.lang.String HTTP_FRACTAL_TRANSPORTER
| Method Detail |
|---|
void send(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
TransportSendContext transportContext)
throws TransportException
exchangeDecorator - the exchange decorator to send.componentName - the name of the distant container.containerName - the name of the distant container.subDomainName - the name of the sub-domain of the remote container.timeToLive - duration of the message life (in ms). 0 for no duration
TransportException - If the exchange is invalid, or can not be serialized. If the
distant container can not be found.
void sendSync(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
TransportSendContext transportContext)
throws TransportException
exchangeDecorator - the exchange decorator to send.componentName - the name of the distant container.containerName - the name of the distant container.
non emptysubDomainName - the name of the sub-domain of the remote container.timeToLive - duration of the message life (in ms). 0 for no duration
TransportException - If the exchange is invalid, or can not be serialized. If the
distant container can not be found.void stopTraffic()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||