|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RouterService
Routes messages from the DeliveryChannel
to their destinations.
Perform an address resolution, finding the endpoint(s) satisfying the destination information, and select the appropriate transporter to convey the messages. Resolutions are based on defined rules.
Routes messages pushed from the Transporter
to the target
DeliveryChannel
.
Field Summary | |
---|---|
static String |
COMPONENT_LOGGER_NAME
|
static String |
PROPERTY_ROUTER_CONSUMER_NOACK
The message exchange properties to set the NOACK feature. |
static String |
PROPERTY_ROUTER_PROVIDER_LINKTYPE
The message exchange property name to set the provider link type to resolve. |
static String |
PROPERTY_ROUTER_PROVIDER_NOACK
|
static String |
PROPERTY_ROUTER_QOS
Constant used to specify the property name to set the router policy. |
static String |
PROPERTY_ROUTER_SEND_ATTEMPT
Constant used to specify the property name to set the router send attempt. |
static String |
PROPERTY_ROUTER_SEND_DELAY
Constant used to specify the property name to set the delay between router send attempts. |
static String |
PROPERTY_ROUTER_TIMETOLIVE
The message exchange property to set the TTL of the exchange. |
Fields inherited from interface org.ow2.petals.clientserverapi.jbi.messaging.RouterService |
---|
DEFAULT_PLATFORM_STRATEGY, DEFAULT_POLICY, FAST_POLICY, RELIABLE_POLICY, SECURE_POLICY |
Method Summary | |
---|---|
void |
addComponent(ComponentContext componentContext)
Inform that a component is installing. |
void |
modifiedSALifeCycle(List<ServiceUnitLifeCycle> serviceUnitLifes)
Inform that a SA life-cycle has changed its state. |
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 componentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
Send the message into the NMR. |
void |
sendSync(ComponentContext componentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
long timeout)
Send the message synchronously into the NMR. |
void |
stopTraffic()
Prepare the stopping of the component. |
Field Detail |
---|
static final String COMPONENT_LOGGER_NAME
static final String PROPERTY_ROUTER_TIMETOLIVE
static final String PROPERTY_ROUTER_CONSUMER_NOACK
static final String PROPERTY_ROUTER_PROVIDER_NOACK
static final String PROPERTY_ROUTER_PROVIDER_LINKTYPE
static final String PROPERTY_ROUTER_QOS
static final String PROPERTY_ROUTER_SEND_ATTEMPT
static final String PROPERTY_ROUTER_SEND_DELAY
Method Detail |
---|
void send(ComponentContext componentContext, org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator) throws RoutingException
componentContext
- the source component contextexchangeDecorator
- the MessageExchangeWrapper
RoutingException
- impossible to send the messagevoid sendSync(ComponentContext componentContext, org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator, long timeout) throws RoutingException
componentContext
- the source component contextexchangeDecorator
- the MessageExchangeWrapper
timeOut
- timeout of the message (in ms). 0 for no timeout
RoutingException
- impossible to process a synchronous sendorg.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper receive(ComponentContext componentContext, long timeoutMS) throws RoutingException
componentContext
- The source component context MUST be non nulltimeoutMS
- parameter which represents
Transporter
RoutingException
- impossible to receive the messagevoid addComponent(ComponentContext componentContext) throws RoutingException
Router
must
inform its Transporters
about the component installation.
componentContext
- The component context
RoutingException
- impossible to add the componentvoid removeComponent(ComponentContext componentContext) throws RoutingException
Router
must
inform its Transporters
about the component uninstallation.
componentContext
- The component context
RoutingException
- impossible to remove the componentvoid modifiedSALifeCycle(List<ServiceUnitLifeCycle> serviceUnitLifes)
serviceUnitDescriptors
- the list of bound SU JBI descriptorsvoid stopTraffic()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |