Package org.openhab.core.id
Class InstanceUUID
java.lang.Object
org.openhab.core.id.InstanceUUID
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
get()
Retrieves a unified unique id, based onUUID.randomUUID()
-
Constructor Details
-
InstanceUUID
public InstanceUUID()
-
-
Method Details
-
get
Retrieves a unified unique id, based onUUID.randomUUID()
- Returns:
- a UUID which identifies the instance or null, if uuid cannot be persisted
-