org.ow2.petals.jbi.messaging.routing.module
Class EndpointResolverModule

java.lang.Object
  extended by org.ow2.petals.jbi.messaging.routing.module.EndpointResolverModule
All Implemented Interfaces:
SenderModule

public class EndpointResolverModule
extends java.lang.Object
implements SenderModule

Router module to resolve address.

Since:
2.2
Author:
Christophe HAMERLING - eBM WebSourcing

Field Summary
static java.lang.String HIGHEST
          the highest strategy.
static int NUMBER_STRATEGY_PARAMETERS
          Number of parameters defined in strategy.
static java.lang.String PROPERTY_STRATEGY_PROTOCOLS
          Constant used to specify the strategy to use.
static java.lang.String RANDOM
          the load balancing (random strategy).
static java.lang.String STRATEGY_SEPARATOR
          the strategy separator.
 
Constructor Summary
EndpointResolverModule()
           
 
Method Summary
 void electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints, ComponentContext sourceComponentContext, org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
          Elect a list of candidate endpoints to be destination of the exchange.
protected  void start()
          Start the Fractal component
protected  void stop()
          Stop the Fractal component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIGHEST

public static final java.lang.String HIGHEST
the highest strategy.

See Also:
Constant Field Values

NUMBER_STRATEGY_PARAMETERS

public static final int NUMBER_STRATEGY_PARAMETERS
Number of parameters defined in strategy.

See Also:
Constant Field Values

PROPERTY_STRATEGY_PROTOCOLS

public static final java.lang.String PROPERTY_STRATEGY_PROTOCOLS
Constant used to specify the strategy to use.

See Also:
Constant Field Values

RANDOM

public static final java.lang.String RANDOM
the load balancing (random strategy).

See Also:
Constant Field Values

STRATEGY_SEPARATOR

public static final java.lang.String STRATEGY_SEPARATOR
the strategy separator.

See Also:
Constant Field Values
Constructor Detail

EndpointResolverModule

public EndpointResolverModule()
Method Detail

electEndpoints

public final void electEndpoints(java.util.Map<ServiceEndpoint,TransportSendContext> electedEndpoints,
                                 ComponentContext sourceComponentContext,
                                 org.ow2.petals.jbi.messaging.exchange.MessageExchangeWrapper exchangeDecorator)
                          throws RoutingException
Description copied from interface: SenderModule
Elect a list of candidate endpoints to be destination of the exchange.

Specified by:
electEndpoints in interface SenderModule
exchangeDecorator - the exchange decorator to send
Throws:
RoutingException

start

protected void start()
              throws RoutingException
Start the Fractal component

Throws:
RoutingException

stop

protected void stop()
             throws RoutingException
Stop the Fractal component

Throws:
RoutingException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.