|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.transport.platform.nio.NioTransporterImpl
public class NioTransporterImpl
NIO Implementation of the Transporter
| Field Summary |
|---|
| Fields inherited from interface org.ow2.petals.transport.Transporter |
|---|
HTTP_FRACTAL_TRANSPORTER, LOCAL_FRACTAL_TRANSPORTER, SSL_FRACTAL_TRANSPORTER, TCP_FRACTAL_TRANSPORTER |
| Fields inherited from interface org.ow2.petals.transport.platform.nio.server.NioReceiver |
|---|
NIO_MSG_RECEIVER_ITF |
| Constructor Summary | |
|---|---|
NioTransporterImpl()
|
|
| Method Summary | |
|---|---|
void |
onMessage(java.lang.Object object)
|
void |
send(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
TransportSendContext transportContext)
This method does following action : Serialize the message exchange. Get the destination of the message. Add it to the message. Send it to the transport agent. |
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 |
start()
Init variables with Fractal attributes value and create/bind the topic for this container. |
void |
stop()
Method called when the fractal component is stopped |
void |
stopTraffic()
Prepare the stopping of the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NioTransporterImpl()
| Method Detail |
|---|
public void onMessage(java.lang.Object object)
onMessage in interface NioReceiver
public void send(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
TransportSendContext transportContext)
throws TransportException
send in interface TransporterexchangeDecorator - the exchange decorator to send.
TransportException - If the exchange is invalid, or can not be serialized. If the
distant container can not be found.Transporter#send(MessageExchangeImpl, java.lang.String,
java.lang.String, long)
public void sendSync(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
TransportSendContext transportContext)
throws TransportException
Transporter
sendSync in interface TransporterexchangeDecorator - the exchange decorator to send.
TransportException - If the exchange is invalid, or can not be serialized. If the
distant container can not be found.public void stopTraffic()
Transporter
stopTraffic in interface Transporter
public void start()
throws org.objectweb.fractal.api.control.IllegalLifeCycleException,
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.NoSuchInterfaceException
java.lang.Exception
org.objectweb.fractal.api.control.IllegalLifeCycleException
public void stop()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||