public final class SettingsUtil extends Object
List of system properties:
List of environment variables:
System properties has prevalence over environment variables.
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NODE
The property name for the node number.
|
protected static String |
PROPERTY_PREFIX
The property name prefix.
|
static String |
PROPERTY_SECURERANDOM
The property name for the secure random algorithm.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SettingsUtil()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearProperty(String key)
Clear a property.
|
protected static String |
getEnvinronmentName(String key)
Get an environment variable name.
|
static Long |
getNodeIdentifier()
Get the node identifier.
|
static String |
getProperty(String name)
Get a property.
|
protected static String |
getPropertyName(String key)
Get a property name.
|
static String |
getSecureRandom()
Get the secure random algorithm.
|
static void |
setNodeIdentifier(Long node)
Set the node identifier
|
static void |
setProperty(String key,
String value)
Set a property.
|
static void |
setSecureRandom(String algorithm)
Set the secure random algorithm
|
protected static final String PROPERTY_PREFIX
public static final String PROPERTY_NODE
public static final String PROPERTY_SECURERANDOM
public static Long getNodeIdentifier()
public static void setNodeIdentifier(Long node)
node - a numberpublic static String getSecureRandom()
public static void setSecureRandom(String algorithm)
algorithm - a stringpublic static String getProperty(String name)
name - the namepublic static void setProperty(String key, String value)
key - the keyvalue - the valuepublic static void clearProperty(String key)
key - the keyprotected static String getPropertyName(String key)
key - a keyCopyright © 2024. All rights reserved.