Class ZoneUtils
- 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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringextractApproximateZone(String host)Approximates Eureka zones from a host name.
-
-
-
Method Detail
-
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
-
-