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

java.lang.Object
  extended by org.talend.esb.servicelocator.cxf.internal.LocatorSelectionStrategy
All Implemented Interfaces:
org.apache.cxf.clustering.FailoverStrategy
Direct Known Subclasses:
DefaultSelectionStrategy, EvenDistributionSelectionStrategy, RandomSelectionStrategy

public abstract class LocatorSelectionStrategy
extends Object
implements org.apache.cxf.clustering.FailoverStrategy


Field Summary
protected  LocatorCache locatorCache
           
protected static Logger LOG
           
 
Constructor Summary
LocatorSelectionStrategy()
           
 
Method Summary
 List<String> getAlternateAddresses(org.apache.cxf.message.Exchange exchange)
           
 List<org.apache.cxf.endpoint.Endpoint> getAlternateEndpoints(org.apache.cxf.message.Exchange exchange)
           
abstract  String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)
           
protected  QName getServiceName(org.apache.cxf.message.Exchange exchange)
           
 String selectAlternateAddress(List<String> alternates)
           
 org.apache.cxf.endpoint.Endpoint selectAlternateEndpoint(List<org.apache.cxf.endpoint.Endpoint> alternates)
           
 void setMatcher(SLPropertiesMatcher propertiesMatcher)
           
 void setReloadAdressesCount(int reloadAdressesCount)
           
 void setServiceLocator(ServiceLocator serviceLocator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Logger LOG

locatorCache

protected LocatorCache locatorCache
Constructor Detail

LocatorSelectionStrategy

public LocatorSelectionStrategy()
Method Detail

selectAlternateAddress

public String selectAlternateAddress(List<String> alternates)
Specified by:
selectAlternateAddress in interface org.apache.cxf.clustering.FailoverStrategy

getAlternateAddresses

public List<String> getAlternateAddresses(org.apache.cxf.message.Exchange exchange)
Specified by:
getAlternateAddresses in interface org.apache.cxf.clustering.FailoverStrategy

getAlternateEndpoints

public List<org.apache.cxf.endpoint.Endpoint> getAlternateEndpoints(org.apache.cxf.message.Exchange exchange)
Specified by:
getAlternateEndpoints in interface org.apache.cxf.clustering.FailoverStrategy

selectAlternateEndpoint

public org.apache.cxf.endpoint.Endpoint selectAlternateEndpoint(List<org.apache.cxf.endpoint.Endpoint> alternates)
Specified by:
selectAlternateEndpoint in interface org.apache.cxf.clustering.FailoverStrategy

getPrimaryAddress

public abstract String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)
Parameters:
exchange -
Returns:

setMatcher

public void setMatcher(SLPropertiesMatcher propertiesMatcher)

setServiceLocator

public void setServiceLocator(ServiceLocator serviceLocator)

setReloadAdressesCount

public void setReloadAdressesCount(int reloadAdressesCount)

getServiceName

protected QName getServiceName(org.apache.cxf.message.Exchange exchange)


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