public class LoadDistributorTargetSelector extends FailoverTargetSelector
FailoverTargetSelector.InvocationContext, FailoverTargetSelector.InvocationKeyfailoverStrategy, inProgressCONDUIT_COMPARE_FULL_URL, conduits, endpoint, KEEP_CONDUIT_ALIVE| Constructor and Description |
|---|
LoadDistributorTargetSelector()
Normal constructor.
|
LoadDistributorTargetSelector(Conduit c)
Constructor, allowing a specific conduit to override normal selection.
|
LoadDistributorTargetSelector(String clientBootstrapAddress) |
| Modifier and Type | Method and Description |
|---|---|
protected Endpoint |
getFailoverTarget(Exchange exchange,
FailoverTargetSelector.InvocationContext invocation)
Get the failover target endpoint, if a suitable one is available.
|
protected Logger |
getLogger() |
boolean |
isFailover() |
protected boolean |
requiresFailover(Exchange exchange,
Exception ex)
Check if the exchange is suitable for a failover.
|
Conduit |
selectConduit(Message message)
Called when a Conduit is actually required.
|
void |
setFailover(boolean failover) |
complete, doComplete, getClientBootstrapAddress, getDelayBetweenRetries, getInvocationContext, getInvocationKey, getStrategy, isSupportNotAvailableErrorsOnly, onFailure, onSuccess, overrideAddressProperty, overrideAddressProperty, performFailover, prepare, replaceEndpointAddressPropertyIfNeeded, setClientBootstrapAddress, setOriginalEndpoint, setStrategy, setSupportNotAvailableErrorsOnly, setupExchangeExceptionProperties, updateContextAlternativesclose, createConduit, findCompatibleConduit, getEndpoint, getSelectedConduit, removeConduit, setEndpointpublic LoadDistributorTargetSelector()
public LoadDistributorTargetSelector(String clientBootstrapAddress)
public LoadDistributorTargetSelector(Conduit c)
c - specific conduitpublic boolean isFailover()
public void setFailover(boolean failover)
protected Logger getLogger()
getLogger in class FailoverTargetSelectorpublic Conduit selectConduit(Message message)
selectConduit in interface ConduitSelectorselectConduit in class FailoverTargetSelectormessage - protected Endpoint getFailoverTarget(Exchange exchange, FailoverTargetSelector.InvocationContext invocation)
getFailoverTarget in class FailoverTargetSelectorexchange - the current Exchangeinvocation - the current InvocationContextprotected boolean requiresFailover(Exchange exchange, Exception ex)
FailoverTargetSelectorrequiresFailover in class FailoverTargetSelectorexchange - the current ExchangeApache CXF