|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.messaging.routing.RouterServiceImpl
public class RouterServiceImpl
Routes messages to their destinations. Performs an itinerary resolution, adding for example a transformation service before delivering the message to its recipient, and perform an address resolution, finding the endpoint satisfying the the destination information (finding an endpoint for a specified service). Resolutions are based on defined rules.
| Field Summary |
|---|
| Fields inherited from interface org.ow2.petals.jbi.messaging.routing.RouterService |
|---|
DEFAULT_PLATFORM_STRATEGY, DEFAULT_POLICY, DEFAULT_STANDALONE_STRATEGY, FAST_POLICY, PROPERTY_ROUTER_CONSUMER_NOACK, PROPERTY_ROUTER_PROVIDER_LINKTYPE, PROPERTY_ROUTER_PROVIDER_NOACK, PROPERTY_ROUTER_QOS, PROPERTY_ROUTER_SEND_ATTEMPT, PROPERTY_ROUTER_SEND_DELAY, PROPERTY_ROUTER_TIMETOLIVE, RELIABLE_POLICY, SECURE_POLICY |
| Constructor Summary | |
|---|---|
RouterServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addComponent(ComponentContext componentContext)
Inform that a component is installing. |
void |
exchangeSent(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
The Message Exchange has been sent. |
void |
modifiedSALifeCycle(java.util.List<ServiceUnitLifeCycle> serviceUnitLifeCycles)
Inform that a SA life-cycle has changed its state. |
void |
onExchange(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Receive a Message Exchange. |
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper |
receive(ComponentContext componentContext,
long timeoutMS)
Ask to receive a message from MNR and return it. |
void |
removeComponent(ComponentContext componentContext)
Inform that a component is uninstalling. |
void |
send(ComponentContext source,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Send the message into the NMR. |
void |
sendSync(ComponentContext source,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
long timeout)
Send the message synchronously into the NMR. |
protected void |
start()
start the router. |
protected void |
stop()
stop the router. |
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 RouterServiceImpl()
| Method Detail |
|---|
public void addComponent(ComponentContext componentContext)
throws RoutingException
RouterServiceRouter must
inform its Transporters about the component installation.
addComponent in interface RouterServicecomponentContext - The component context
RoutingException - impossible to add the componentpublic void exchangeSent(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
TransportListener
exchangeSent in interface TransportListenerpublic void modifiedSALifeCycle(java.util.List<ServiceUnitLifeCycle> serviceUnitLifeCycles)
RouterService
modifiedSALifeCycle in interface RouterServicepublic void onExchange(org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
TransportListener
onExchange in interface TransportListener
public org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper receive(ComponentContext componentContext,
long timeoutMS)
throws RoutingException
RouterService
receive in interface RouterServicecomponentContext - The source component context MUST be non nulltimeoutMS - parameter which represents
Transporter
RoutingException - impossible to receive the message
public void removeComponent(ComponentContext componentContext)
throws RoutingException
RouterServiceRouter must
inform its Transporters about the component uninstallation.
removeComponent in interface RouterServicecomponentContext - The component context
RoutingException - impossible to remove the component
public void send(ComponentContext source,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
throws RoutingException
RouterService
send in interface RouterServicesource - the source component contextexchangeDecorator - the MessageExchangeWrapper
RoutingException - impossible to send the message
public void sendSync(ComponentContext source,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
long timeout)
throws RoutingException
RouterService
sendSync in interface RouterServicesource - the source component contextexchangeDecorator - the MessageExchangeWrapper
RoutingException - impossible to process a synchronous sendpublic void stopTraffic()
RouterService
stopTraffic in interface RouterService
protected void start()
throws RoutingException
RoutingException - impossible to start the router
protected void stop()
throws RoutingException
RoutingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||