public static List < String > getDiscoveryServiceUrls ( EurekaClientConfig clientConfig , String zone , ServiceUrlRandomizer randomizer ) { boolean shouldUseDns = clientConfig . shouldUseDnsForFetchingServiceUrls ( ) ; if ( shouldUseDns ) { return getServiceUrlsFromDNS ( clientConfig , zone , clientConfig . shouldPreferSameZoneEureka ( ) , randomizer ) ; } return getServiceUrlsFromConfig ( clientConfig , zone , clientConfig . shouldPreferSameZoneEureka ( ) ) ; }
Get the list of all eureka service urls for the eureka client to talk to .