Class ZoneUtils
java.lang.Object
org.springframework.cloud.netflix.eureka.support.ZoneUtils
Utility class for dealing with zones.
- Author:
- Ryan Baxter
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractApproximateZone(String host) Approximates Eureka zones from a host name.
-
Method Details
-
extractApproximateZone
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
-