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

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

public class RandomSelectionStrategy
extends LocatorSelectionStrategy
implements org.apache.cxf.clustering.FailoverStrategy


Field Summary
 
Fields inherited from class org.talend.esb.servicelocator.cxf.internal.LocatorSelectionStrategy
LOG, random
 
Constructor Summary
RandomSelectionStrategy()
           
 
Method Summary
 List<String> getAlternateAddresses(org.apache.cxf.message.Exchange exchange)
          
 String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)
          
 void setReloadAdressesCount(int reloadAdressesCount)
           
 
Methods inherited from class org.talend.esb.servicelocator.cxf.internal.LocatorSelectionStrategy
getAlternateEndpoints, getEndpoints, getServiceLocator, getServiceName, selectAlternateAddress, selectAlternateEndpoint, setMatcher, setServiceLocator
 
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
getAlternateEndpoints, selectAlternateAddress, selectAlternateEndpoint
 

Constructor Detail

RandomSelectionStrategy

public RandomSelectionStrategy()
Method Detail

setReloadAdressesCount

public void setReloadAdressesCount(int reloadAdressesCount)

getAlternateAddresses

public List<String> getAlternateAddresses(org.apache.cxf.message.Exchange exchange)

Specified by:
getAlternateAddresses in interface org.apache.cxf.clustering.FailoverStrategy

getPrimaryAddress

public String getPrimaryAddress(org.apache.cxf.message.Exchange exchange)

Specified by:
getPrimaryAddress in class LocatorSelectionStrategy
Returns:


Copyright © 2011 Talend Inc.. All Rights Reserved.