Class InstanceUUID

java.lang.Object
org.openhab.core.id.InstanceUUID

public class InstanceUUID extends Object
This class provides a unique ID for the instance that can be used for identification, e.g. when integrating with external systems. The UUID is generated only once and written to the file system, so that it does not change over time.
Author:
Kai Kreuzer - Initial contribution
  • Constructor Details

    • InstanceUUID

      public InstanceUUID()
  • Method Details

    • get

      public static String get()
      Retrieves a unified unique id, based on UUID.randomUUID()
      Returns:
      a UUID which identifies the instance or null, if uuid cannot be persisted