Class ContentPolicy
java.lang.Object
com.yahoo.documentapi.messagebus.protocol.SlobrokPolicy
com.yahoo.documentapi.messagebus.protocol.ContentPolicy
- All Implemented Interfaces:
DocumentProtocolRoutingPolicy
,com.yahoo.messagebus.routing.RoutingPolicy
Routing policy to determine which distributor in a content cluster to send data to.
Using different key=value parameters separated by semicolon (";"), the user can control which cluster to send to.
cluster=[clusterName] (Mandatory, determines the cluster name)
config=[config] (Optional, a comma separated list of config servers to use. Used to talk to clusters not defined in this vespa application)
clusterconfigid=[id] (Optional, use given config id for distribution instead of default)
- Author:
- Haakon Humberset
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Helper class to get the bucket identifier of a message.static class
Class handling the logic of picking a distributorstatic class
Helper class to match a host pattern with node to use.static interface
Tracks "instability" across nodes based on number of failures received versus some implementation-specific limit.static class
Class parsing the semicolon separated parameter string and exposes the appropriate value to the policy.static class
Class that tracks a failure of a given type per node.static class
Host fetcher using a slobrok mirror to find the hosts. -
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor specifying a bit more in detail, so we can override what needs to be overridden in testsContentPolicy
(String param, com.yahoo.vespa.config.content.DistributionConfig config) Constructor used in production. -
Method Summary
Methods inherited from class com.yahoo.documentapi.messagebus.protocol.SlobrokPolicy
lookup, parse
-
Field Details
-
owningBucketStates
- See Also:
-
-
Constructor Details
-
ContentPolicy
Constructor used in production. -
ContentPolicy
Constructor specifying a bit more in detail, so we can override what needs to be overridden in tests
-
-
Method Details
-
select
public void select(com.yahoo.messagebus.routing.RoutingContext context) -
merge
public void merge(com.yahoo.messagebus.routing.RoutingContext context) -
destroy
public void destroy()
-