Class ContentPolicy.HostFetcher

java.lang.Object
com.yahoo.documentapi.messagebus.protocol.ContentPolicy.HostFetcher
Direct Known Subclasses:
ContentPolicy.SlobrokHostFetcher
Enclosing class:
ContentPolicy

public abstract static class ContentPolicy.HostFetcher extends Object
Helper class to match a host pattern with node to use.
  • Field Details

    • randomizer

      protected final Random randomizer
  • Constructor Details

    • HostFetcher

      protected HostFetcher(int percent)
  • Method Details

    • getTargetSpec

      public abstract String getTargetSpec(Integer distributor, com.yahoo.messagebus.routing.RoutingContext context)
    • close

      public void close()