Tabnine Logo
EndpointUtils.getDiscoveryServiceUrls
Code IndexAdd Tabnine to your IDE (free)

How to use
getDiscoveryServiceUrls
method
in
com.netflix.discovery.endpoint.EndpointUtils

Best Java code snippets using com.netflix.discovery.endpoint.EndpointUtils.getDiscoveryServiceUrls (Showing top 4 results out of 315)

origin: Netflix/eureka

/**
 * @deprecated see replacement in {@link com.netflix.discovery.endpoint.EndpointUtils}
 */
@Deprecated
@Override
public List<String> getDiscoveryServiceUrls(String zone) {
  return EndpointUtils.getDiscoveryServiceUrls(clientConfig, zone, urlRandomizer);
}
origin: Netflix/eureka

/**
 * Resolve peer URLs.
 *
 * @return peer URLs with node's own URL filtered out
 */
protected List<String> resolvePeerUrls() {
  InstanceInfo myInfo = applicationInfoManager.getInfo();
  String zone = InstanceInfo.getZone(clientConfig.getAvailabilityZones(clientConfig.getRegion()), myInfo);
  List<String> replicaUrls = EndpointUtils
      .getDiscoveryServiceUrls(clientConfig, zone, new EndpointUtils.InstanceInfoBasedUrlRandomizer(myInfo));
  int idx = 0;
  while (idx < replicaUrls.size()) {
    if (isThisMyUrl(replicaUrls.get(idx))) {
      replicaUrls.remove(idx);
    } else {
      idx++;
    }
  }
  return replicaUrls;
}
origin: com.netflix.eureka/eureka-client

/**
 * @deprecated see replacement in {@link com.netflix.discovery.endpoint.EndpointUtils}
 */
@Deprecated
@Override
public List<String> getDiscoveryServiceUrls(String zone) {
  return EndpointUtils.getDiscoveryServiceUrls(clientConfig, zone, urlRandomizer);
}
origin: com.netflix.eureka/eureka-core

/**
 * Resolve peer URLs.
 *
 * @return peer URLs with node's own URL filtered out
 */
protected List<String> resolvePeerUrls() {
  InstanceInfo myInfo = applicationInfoManager.getInfo();
  String zone = InstanceInfo.getZone(clientConfig.getAvailabilityZones(clientConfig.getRegion()), myInfo);
  List<String> replicaUrls = EndpointUtils
      .getDiscoveryServiceUrls(clientConfig, zone, new EndpointUtils.InstanceInfoBasedUrlRandomizer(myInfo));
  int idx = 0;
  while (idx < replicaUrls.size()) {
    if (isThisMyUrl(replicaUrls.get(idx))) {
      replicaUrls.remove(idx);
    } else {
      idx++;
    }
  }
  return replicaUrls;
}
com.netflix.discovery.endpointEndpointUtilsgetDiscoveryServiceUrls

Javadoc

Get the list of all eureka service urls for the eureka client to talk to.

Popular methods of EndpointUtils

  • getServiceUrlsFromDNS
    Get the list of all eureka service urls from DNS for the eureka client to talk to. The client picks
  • getEC2DiscoveryUrlsFromZone
    Get the list of EC2 URLs given the zone name.
  • getRegion
    Get the region that this particular instance is in.
  • getServiceUrlsFromConfig
    Get the list of all eureka service urls from properties file for the eureka client to talk to.
  • getServiceUrlsMapFromConfig
    Get the list of all eureka service urls from properties file for the eureka client to talk to.
  • getZoneBasedDiscoveryUrlsFromRegion
    Get the zone based CNAMES that are bound to a region.
  • getZoneOffset
    Gets the zone to pick up for this instance.
  • isEC2Url

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Permission (java.security)
    Legacy security code; do not use.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now