public abstract class AbstractLoadBalancerStrategy<S extends ClientRequest> extends Object implements LoadBalancerStrategy<S>
LoadBalancerStrategy.STRATEGY_TYPE| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
static ReentrantReadWriteLock |
readWriteLock |
protected List<InternalServerProxy> |
serverProxies |
lastKnownErrorThreadLocal| Constructor and Description |
|---|
AbstractLoadBalancerStrategy(String serviceName,
boolean serviceDirectoryEnabled,
long waitingTime,
String clientName,
long retryDelay,
int numberOfAttempts) |
| Modifier and Type | Method and Description |
|---|---|
List<InternalServerProxy> |
getServerProxies() |
String |
getServiceName() |
Throwable |
handleException(String apiName,
InternalServerProxy serverProxy,
Throwable throwable) |
void |
handleNullserverProxy(String apiName,
Throwable lastCaugtException) |
boolean |
isServiceDirectoryEnabled() |
void |
setServerProxies(List<InternalServerProxy> serverProxies)
set a list of objects to be invoked by the orchestrator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServerProxyprotected static final org.slf4j.Logger LOGGER
public static final ReentrantReadWriteLock readWriteLock
protected List<InternalServerProxy> serverProxies
public String getServiceName()
public boolean isServiceDirectoryEnabled()
public Throwable handleException(String apiName, InternalServerProxy serverProxy, Throwable throwable)
handleException in interface LoadBalancerStrategy<S extends ClientRequest>public void handleNullserverProxy(String apiName, Throwable lastCaugtException)
handleNullserverProxy in interface LoadBalancerStrategy<S extends ClientRequest>public List<InternalServerProxy> getServerProxies()
getServerProxies in interface LoadBalancerStrategy<S extends ClientRequest>public void setServerProxies(List<InternalServerProxy> serverProxies)
LoadBalancerStrategysetServerProxies in interface LoadBalancerStrategy<S extends ClientRequest>serverProxies - list of server objects to be invoked by the orchestrator.Copyright © 2015 Cisco. All rights reserved.