Package org.apache.cxf.clustering
Class FailoverFeature
- java.lang.Object
-
- javax.xml.ws.WebServiceFeature
-
- org.apache.cxf.feature.AbstractFeature
-
- org.apache.cxf.feature.DelegatingFeature<FailoverFeature.Portable>
-
- org.apache.cxf.clustering.FailoverFeature
-
- All Implemented Interfaces:
AbstractPortableFeature,Feature
- Direct Known Subclasses:
CircuitBreakerFailoverFeature,LoadDistributorFeature
@EvaluateAllEndpoints public class FailoverFeature extends DelegatingFeature<FailoverFeature.Portable>
This feature may be applied to a Client so as to enable failover from the initial target endpoint to any other compatible endpoint for the target service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFailoverFeature.Portable
-
Field Summary
-
Fields inherited from class org.apache.cxf.feature.DelegatingFeature
delegate
-
-
Constructor Summary
Constructors Modifier Constructor Description FailoverFeature()FailoverFeature(String clientBootstrapAddress)protectedFailoverFeature(FailoverFeature.Portable portable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientBootstrapAddress()FailoverStrategygetStrategy()FailoverTargetSelectorgetTargetSelector()ConduitSelectorinitTargetSelector(Endpoint endpoint)voidsetClientBootstrapAddress(String clientBootstrapAddress)voidsetStrategy(FailoverStrategy strategy)voidsetTargetSelector(FailoverTargetSelector selector)-
Methods inherited from class org.apache.cxf.feature.DelegatingFeature
getDelegate, initialize, initialize, initialize, initialize, initializeProvider, setDelegate
-
Methods inherited from class org.apache.cxf.feature.AbstractFeature
doInitializeProvider, getActive, getID, isEnabled
-
-
-
-
Constructor Detail
-
FailoverFeature
protected FailoverFeature(FailoverFeature.Portable portable)
-
FailoverFeature
public FailoverFeature()
-
FailoverFeature
public FailoverFeature(String clientBootstrapAddress)
-
-
Method Detail
-
initTargetSelector
public ConduitSelector initTargetSelector(Endpoint endpoint)
-
getTargetSelector
public FailoverTargetSelector getTargetSelector()
-
setTargetSelector
public void setTargetSelector(FailoverTargetSelector selector)
-
setStrategy
public void setStrategy(FailoverStrategy strategy)
-
getStrategy
public FailoverStrategy getStrategy()
-
getClientBootstrapAddress
public String getClientBootstrapAddress()
-
setClientBootstrapAddress
public void setClientBootstrapAddress(String clientBootstrapAddress)
-
-