Class IdUtils


  • public final class IdUtils
    extends Object
    Author:
    Spencer Gibb
    • Method Detail

      • getDefaultInstanceId

        public static String getDefaultInstanceId​(org.springframework.core.env.PropertyResolver resolver)
      • getDefaultInstanceId

        public static String getDefaultInstanceId​(org.springframework.core.env.PropertyResolver resolver,
                                                  boolean includeHostname)
      • getResolvedServiceId

        public static String getResolvedServiceId​(org.springframework.core.env.PropertyResolver resolver)
        Gets the resolved service id.
        Parameters:
        resolver - A property resolved
        Returns:
        A unique id that can be used to uniquely identify a service
      • getUnresolvedServiceId

        public static String getUnresolvedServiceId()
        Gets the unresolved template for the service id without active profiles.
        Returns:
        The combination of properties to create a unique service id.
      • getUnresolvedServiceIdWithActiveProfiles

        public static String getUnresolvedServiceIdWithActiveProfiles()
        Gets the unresolved template for the service id including active profiles.
        Returns:
        The combination of properties to create a unique service id.