org.talend.esb.servicelocator.cxf.internal
Class LocatorSelectionStrategy
java.lang.Object
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
| 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 |
LOG
protected static final Logger LOG
random
protected Random random
LocatorSelectionStrategy
public LocatorSelectionStrategy()
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.