org.ow2.petals.jbi.messaging.routing.module.endpoint
Class EndpointOrderer

java.lang.Object
  extended by org.ow2.petals.jbi.messaging.routing.module.endpoint.EndpointOrderer

public final class EndpointOrderer
extends java.lang.Object

The endpoint chooser strategy.

Author:
nsalatge - eBM WebSourcing

Constructor Summary
EndpointOrderer(org.ow2.petals.util.LoggingUtil log, ContainerConfiguration containerConfiguration, TopologyService topologyService)
          Default constructor.
 
Method Summary
 java.util.List<ServiceEndpoint> orderEndpoints(java.util.List<ServiceEndpoint> endpoints, java.util.List<java.lang.Object> strategyParameters)
          Elects the endpoints list of endpoints as the message recipient, with the defined strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointOrderer

public EndpointOrderer(org.ow2.petals.util.LoggingUtil log,
                       ContainerConfiguration containerConfiguration,
                       TopologyService topologyService)
Default constructor.

Method Detail

orderEndpoints

public final java.util.List<ServiceEndpoint> orderEndpoints(java.util.List<ServiceEndpoint> endpoints,
                                                            java.util.List<java.lang.Object> strategyParameters)
                                                     throws RoutingException
Elects the endpoints list of endpoints as the message recipient, with the defined strategy. Ask the consumer and the provider if they are Okay for the exchange.

Parameters:
network - the container network
endpoints - the list of endpoints to select an endpoint from
exchange - the exchange
strategyParameters - the list of parameters of the strategy. Must be non-null
Returns:
the service endpoint selected or null
Throws:
RoutingException - impossible to realize this strategy


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