public class LoadDistributorTargetSelector extends FailoverTargetSelector
FailoverTargetSelector.InvocationContextfailoverStrategy| Constructor and Description |
|---|
LoadDistributorTargetSelector()
Normal constructor.
|
LoadDistributorTargetSelector(org.apache.cxf.transport.Conduit c)
Constructor, allowing a specific conduit to override normal selection.
|
LoadDistributorTargetSelector(String clientBootstrapAddress) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.cxf.endpoint.Endpoint |
getFailoverTarget(org.apache.cxf.message.Exchange exchange,
FailoverTargetSelector.InvocationContext invocation)
Get the failover target endpoint, if a suitable one is available.
|
protected Logger |
getLogger() |
boolean |
isFailover() |
protected boolean |
requiresFailover(org.apache.cxf.message.Exchange exchange,
Exception ex)
Check if the exchange is suitable for a failover.
|
org.apache.cxf.transport.Conduit |
selectConduit(org.apache.cxf.message.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, updateContextAlternativespublic LoadDistributorTargetSelector()
public LoadDistributorTargetSelector(String clientBootstrapAddress)
public LoadDistributorTargetSelector(org.apache.cxf.transport.Conduit c)
c - specific conduitpublic boolean isFailover()
public void setFailover(boolean failover)
protected Logger getLogger()
getLogger in class FailoverTargetSelectorpublic org.apache.cxf.transport.Conduit selectConduit(org.apache.cxf.message.Message message)
selectConduit in interface org.apache.cxf.endpoint.ConduitSelectorselectConduit in class FailoverTargetSelectormessage - protected org.apache.cxf.endpoint.Endpoint getFailoverTarget(org.apache.cxf.message.Exchange exchange,
FailoverTargetSelector.InvocationContext invocation)
getFailoverTarget in class FailoverTargetSelectorexchange - the current Exchangeinvocation - the current InvocationContextprotected boolean requiresFailover(org.apache.cxf.message.Exchange exchange,
Exception ex)
FailoverTargetSelectorrequiresFailover in class FailoverTargetSelectorexchange - the current ExchangeApache CXF