Tabnine Logo
HealthService$Node.getNode
Code IndexAdd Tabnine to your IDE (free)

How to use
getNode
method
in
com.ecwid.consul.v1.health.model.HealthService$Node

Best Java code snippets using com.ecwid.consul.v1.health.model.HealthService$Node.getNode (Showing top 4 results out of 315)

origin: com.netflix.dyno/dyno-contrib

public static String findHost(HealthService healthService) {
  HealthService.Service service = healthService.getService();
  HealthService.Node node = healthService.getNode();
  if (StringUtils.isNotBlank(service.getAddress())) {
    return service.getAddress();
  } else if (StringUtils.isNotBlank(node.getAddress())) {
    return node.getAddress();
  }
  return node.getNode();
}
origin: darren-fu/pampas

private static String findHost(HealthService healthService) {
  HealthService.Service service = healthService.getService();
  HealthService.Node node = healthService.getNode();
  if (StringUtils.isNotBlank(service.getAddress())) {
    return service.getAddress();
  } else if (StringUtils.isNotBlank(node.getAddress())) {
    return node.getAddress();
  }
  return node.getNode();
}
origin: spring-cloud/spring-cloud-consul

public static String findHost(HealthService healthService) {
  HealthService.Service service = healthService.getService();
  HealthService.Node node = healthService.getNode();
  if (StringUtils.hasText(service.getAddress())) {
    return fixIPv6Address(service.getAddress());
  } else if (StringUtils.hasText(node.getAddress())) {
    return fixIPv6Address(node.getAddress());
  }
  return node.getNode();
}
origin: org.springframework.cloud/spring-cloud-consul-discovery

public static String findHost(HealthService healthService) {
  HealthService.Service service = healthService.getService();
  HealthService.Node node = healthService.getNode();
  if (StringUtils.hasText(service.getAddress())) {
    return fixIPv6Address(service.getAddress());
  } else if (StringUtils.hasText(node.getAddress())) {
    return fixIPv6Address(node.getAddress());
  }
  return node.getNode();
}
com.ecwid.consul.v1.health.modelHealthService$NodegetNode

Popular methods of HealthService$Node

  • getAddress

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
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