Class ContentPolicy.HostFetcher

  • Direct Known Subclasses:
    ContentPolicy.SlobrokHostFetcher
    Enclosing class:
    ContentPolicy

    public abstract static class ContentPolicy.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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • randomizer

        protected final java.util.Random randomizer
    • Constructor Detail

      • HostFetcher

        protected HostFetcher​(int percent)
    • Method Detail

      • getTargetSpec

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

        public void close()