java.lang.Object
org.springframework.cloud.netflix.eureka.support.ZoneUtils

public final class ZoneUtils extends Object
Utility class for dealing with zones.
Author:
Ryan Baxter
  • Method Details

    • extractApproximateZone

      public static String extractApproximateZone(String host)
      Approximates Eureka zones from a host name. This method approximates the zone to be everything after the first "." in the host name.
      Parameters:
      host - The host name to extract the host name from
      Returns:
      The approximate zone