Package org.apache.qpid.server.util
Class SystemUtils
- java.lang.Object
-
- org.apache.qpid.server.util.SystemUtils
-
public class SystemUtils extends Object
SystemUtils provides some simple helper methods for working with the current Operating System. It follows the convention of wrapping all checked exceptions as runtimes, so code using these methods is free of try-catch blocks but does not expect to recover from errors.
-
-
Field Summary
Fields Modifier and Type Field Description static String
UNKNOWN_ARCH
static String
UNKNOWN_OS
static String
UNKNOWN_VERSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getOSArch()
static String
getOSConfigSuffix()
static String
getOSName()
static String
getOSString()
static String
getOSVersion()
static String
getProcessPid()
static int
getProcessPidAsInt()
static boolean
isWindows()
-
-
-
Field Detail
-
UNKNOWN_OS
public static final String UNKNOWN_OS
- See Also:
- Constant Field Values
-
UNKNOWN_VERSION
public static final String UNKNOWN_VERSION
- See Also:
- Constant Field Values
-
UNKNOWN_ARCH
public static final String UNKNOWN_ARCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOSName
public static final String getOSName()
-
getOSVersion
public static final String getOSVersion()
-
getOSArch
public static final String getOSArch()
-
getProcessPid
public static final String getProcessPid()
-
getProcessPidAsInt
public static final int getProcessPidAsInt()
-
isWindows
public static final boolean isWindows()
-
getOSConfigSuffix
public static final String getOSConfigSuffix()
-
getOSString
public static final String getOSString()
-
-