Class StoragePolicy.HostFetcher
- java.lang.Object
-
- com.yahoo.documentapi.messagebus.protocol.StoragePolicy.HostFetcher
-
- Direct Known Subclasses:
StoragePolicy.SlobrokHostFetcher
- Enclosing class:
- StoragePolicy
public abstract static class StoragePolicy.HostFetcher extends java.lang.Object
Helper class to match a host pattern with node to use.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Random
randomizer
-
Constructor Summary
Constructors Modifier Constructor Description protected
HostFetcher(int percent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
abstract java.lang.String
getTargetSpec(java.lang.Integer distributor, com.yahoo.messagebus.routing.RoutingContext context)
-