|
||||||||||
| 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 java.lang.String |
DEFAULT_PLATFORM_STRATEGY
|
static java.lang.String |
DEFAULT_POLICY
The default QOS policy. |
static java.lang.String |
DEFAULT_STANDALONE_STRATEGY
|
static java.lang.String |
FAST_POLICY
Constant used to specify the fast policy. |
static java.lang.String |
PROPERTY_ROUTER_CONSUMER_NOACK
The message exchange properties to set the NOACK feature. |
static java.lang.String |
PROPERTY_ROUTER_PROVIDER_LINKTYPE
The message exchange property name to set the provider link type to resolve. |
static java.lang.String |
PROPERTY_ROUTER_PROVIDER_NOACK
|
static java.lang.String |
PROPERTY_ROUTER_QOS
Constant used to specify the property name to set the router policy. |
static java.lang.String |
PROPERTY_ROUTER_SEND_ATTEMPT
Constant used to specify the property name to set the router send attempt. |
static java.lang.String |
PROPERTY_ROUTER_SEND_DELAY
Constant used to specify the property name to set the delay between router send attempts. |
static java.lang.String |
PROPERTY_ROUTER_TIMETOLIVE
The message exchange property to set the TTL of the exchange. |
static java.lang.String |
RELIABLE_POLICY
Constant used to specify the reliable policy. |
static java.lang.String |
SECURE_POLICY
Constant used to specify the secure policy. |
| Method Summary | |
|---|---|
void |
addComponent(ComponentContext componentContext)
Inform that a component is installing. |
void |
modifiedSALifeCycle(java.util.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 java.lang.String PROPERTY_ROUTER_TIMETOLIVE
static final java.lang.String PROPERTY_ROUTER_CONSUMER_NOACK
static final java.lang.String PROPERTY_ROUTER_PROVIDER_NOACK
static final java.lang.String PROPERTY_ROUTER_PROVIDER_LINKTYPE
static final java.lang.String DEFAULT_PLATFORM_STRATEGY
static final java.lang.String DEFAULT_STANDALONE_STRATEGY
static final java.lang.String PROPERTY_ROUTER_QOS
static final java.lang.String PROPERTY_ROUTER_SEND_ATTEMPT
static final java.lang.String PROPERTY_ROUTER_SEND_DELAY
static final java.lang.String SECURE_POLICY
static final java.lang.String RELIABLE_POLICY
static final java.lang.String FAST_POLICY
static final java.lang.String DEFAULT_POLICY
| 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 message
void sendSync(ComponentContext componentContext,
org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator,
long timeout)
throws RoutingException
componentContext - the source component contextexchangeDecorator - the MessageExchangeWrappertimeOut - timeout of the message (in ms). 0 for no timeout
RoutingException - impossible to process a synchronous send
org.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 message
void addComponent(ComponentContext componentContext)
throws RoutingException
Router must
inform its Transporters about the component installation.
componentContext - The component context
RoutingException - impossible to add the component
void 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(java.util.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 | |||||||||