Class WeightedAliasTarget


  • public class WeightedAliasTarget
    extends AliasTarget
    An implementation of AliasTarget where is requests are answered based on the weight assigned to the record, as a proportion of the total weight for all records having the same DNS name. The portion of received traffic is calculated as follows: (record weight / sum of the weights of all records).
    Author:
    mpolden
    • Constructor Summary

      Constructors 
      Constructor Description
      WeightedAliasTarget​(com.yahoo.config.provision.HostName name, java.lang.String dnsZone, com.yahoo.config.provision.zone.ZoneId zone, long weight)  
    • Constructor Detail

      • WeightedAliasTarget

        public WeightedAliasTarget​(com.yahoo.config.provision.HostName name,
                                   java.lang.String dnsZone,
                                   com.yahoo.config.provision.zone.ZoneId zone,
                                   long weight)