Class TurbineUniqueIdService

    • Method Detail

      • getInstanceId

        public String getInstanceId()

        Returns an identifier of this Turbine instance that is unique both on the server and worldwide. This identifier is computed as an MD5 sum of the URL (including schema, address, port if different that 80/443 respectively, context and servlet name). There is an overwhelming probability that this id will be different that all other Turbine instances online.

        Specified by:
        getInstanceId in interface UniqueIdService
        Returns:
        A String with the instance identifier.
      • getUniqueId

        public String getUniqueId()

        Returns an identifier that is unique within this turbine instance, but does not have random-like appearance.

        Specified by:
        getUniqueId in interface UniqueIdService
        Returns:
        A String with the non-random looking instance identifier.