public class SystemUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemUtils.ReplaceItem |
| Constructor and Description |
|---|
SystemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addBouncyCastleSecurityProvider() |
static java.lang.String |
expandEnvironmentVariables(java.lang.String inValue)
This method is to substitute runtime environment variables into your arbitrary Strings.
|
static java.lang.String |
expandEnvironmentVariables(java.lang.String inValue,
java.util.Map valueMap)
Same as
expandEnvironmentVariables(String) except that you can feed in extra arbitrary custom variables to resolve on top of the environment variables. |
static long |
getCpuTime() |
static java.lang.String |
getLinuxSocketParam(java.lang.String paramString) |
static byte[] |
getMACAddress() |
static long |
getSystemTime() |
static long |
getUserTime() |
static long |
toNTPTime(long paramLong) |
public static java.lang.String expandEnvironmentVariables(java.lang.String inValue)
inValue - the string that contains the placeholders to be expanded in ${variable} formatpublic static java.lang.String expandEnvironmentVariables(java.lang.String inValue,
java.util.Map valueMap)
expandEnvironmentVariables(String) except that you can feed in extra arbitrary custom variables to resolve on top of the environment variables.inValue - the string that contains the placeholders to be expanded in ${variable} formatvalueMap - a map keyed with Strings and contains the possible values to be substitutedpublic static byte[] getMACAddress()
public static void addBouncyCastleSecurityProvider()
public static long toNTPTime(long paramLong)
paramLong - public static long getCpuTime()
public static long getUserTime()
public static long getSystemTime()
public static java.lang.String getLinuxSocketParam(java.lang.String paramString)
paramString -