public class DNSResolverForRacks extends DNSResolver
It resolves domain name like `(region)-(rack)-xxx-xxx.*` to network location `/(region)/(rack)`. If resolution failed, it returns `/default-region/default-rack`.
region could be override in
hostRegionOverrides. for example, if the
host name is regionA-rack1-xx-yyy, it would be resolved to `/regionA/rack1`
without any overrides. If the specified overrides is regionA-rack1-xx-yyy:regionB,
the resolved network location would be /regionB/rack1.
Region overrides provide optimization hits to bookkeeper if two `logical` regions are in same or close locations.
|Constructor and Description|
|Modifier and Type||Method and Description|
public DNSResolverForRacks(String hostRegionOverrides)
domainNameto its network location.
Copyright © 2016-2018 The Apache Software Foundation. All Rights Reserved.