Class SettingsUtil


  • public final class SettingsUtil
    extends Object
    Utility class that reads system properties and environment variables.

    List of system properties:

    • uuidcreator.node
    • uuidcreator.securerandom

    List of environment variables:

    • UUIDCREATOR_NODE
    • UUIDCREATOR_SECURERANDOM

    System properties has prevalence over environment variables.

    • Constructor Detail

      • SettingsUtil

        protected SettingsUtil()
    • Method Detail

      • getNodeIdentifier

        public static Long getNodeIdentifier()
      • setNodeIdentifier

        public static void setNodeIdentifier​(Long nodeid)
      • getSecureRandom

        public static String getSecureRandom()
      • setSecureRandom

        public static void setSecureRandom​(String random)
      • getProperty

        public static String getProperty​(String name)
      • setProperty

        public static void setProperty​(String key,
                                       String value)
      • clearProperty

        public static void clearProperty​(String key)
      • getPropertyName

        protected static String getPropertyName​(String key)
      • getEnvinronmentName

        protected static String getEnvinronmentName​(String key)