Codota Logo
EndpointUtils.getDiscoveryServiceUrls
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • putExtra (Intent)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Path (java.nio.file)
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now