org.talend.esb.servicelocator.cxf.internal
Class DefaultSelectionStrategy

java.lang.Object
  extended by org.talend.esb.servicelocator.cxf.internal.LocatorSelectionStrategy
      extended by org.talend.esb.servicelocator.cxf.internal.DefaultSelectionStrategy
All Implemented Interfaces:
org.apache.cxf.clustering.FailoverStrategy

public class DefaultSelectionStrategy
extends LocatorSelectionStrategy

Keeps the endpoint as long as there is no failover. In case of a fail over all strategies are equivalent - a random alternative endpoint is selected.


Field Summary
 
Fields inherited from class org.talend.esb.servicelocator.cxf.internal.LocatorSelectionStrategy
locatorCache, LOG
 
Constructor Summary
DefaultSelectionStrategy()
           
 
Method Summary
 String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)
           
 
Methods inherited from class org.talend.esb.servicelocator.cxf.internal.LocatorSelectionStrategy
getAlternateAddresses, getAlternateEndpoints, getServiceName, selectAlternateAddress, selectAlternateEndpoint, setMatcher, setReloadAdressesCount, setServiceLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSelectionStrategy

public DefaultSelectionStrategy()
Method Detail

getPrimaryAddress

public String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)
Specified by:
getPrimaryAddress in class LocatorSelectionStrategy
Returns:


Copyright © 2011–2014 Talend Inc.. All rights reserved.