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 static Logger LOG
           
protected  Random random
           
 
Constructor Summary
LocatorSelectionStrategy()
           
 
Method Summary
 List<org.apache.cxf.endpoint.Endpoint> getAlternateEndpoints(org.apache.cxf.message.Exchange exchange)
           
protected  List<String> getEndpoints(QName serviceName)
           
abstract  String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)
           
 ServiceLocator getServiceLocator()
           
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 setServiceLocator(ServiceLocator serviceLocator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.clustering.FailoverStrategy
getAlternateAddresses
 

Field Detail

LOG

protected static final Logger LOG

random

protected Random random
Constructor Detail

LocatorSelectionStrategy

public LocatorSelectionStrategy()
Method Detail

selectAlternateAddress

public String selectAlternateAddress(List<String> alternates)
Specified by:
selectAlternateAddress 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)

getServiceLocator

public ServiceLocator getServiceLocator()

getServiceName

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

getEndpoints

protected List<String> getEndpoints(QName serviceName)


Copyright © 2011-2013 Talend Inc.. All Rights Reserved.