Package org.processmining.framework.util
Class OsUtil
- java.lang.Object
-
- org.processmining.framework.util.OsUtil
-
public class OsUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OS_BEOS
static java.lang.String
OS_BSD
static java.lang.String
OS_LINUX
static java.lang.String
OS_MACOSCLASSIC
static java.lang.String
OS_MACOSX
static java.lang.String
OS_RISCOS
static java.lang.String
OS_UNKNOWN
static java.lang.String
OS_WIN32
static java.lang.String
OS_WIN64
-
Constructor Summary
Constructors Constructor Description OsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
determineOS()
static long
getPhysicalMemory()
static java.io.File
getProMPackageDirectory()
Returns a handle to the ProM package folder.static java.io.File
getProMWorkspaceDirectory()
Returns a handle to the ProM workspace folder.static boolean
hasProMPackageDirectory()
Returns whether the ProM package folder exists on this system.static boolean
hasProMWorkspaceDirectory()
Returns whether the ProM workspace folder exists on this system.static boolean
is32Bit()
static boolean
is64Bit()
static boolean
isRunningLinux()
static boolean
isRunningMacOsX()
static boolean
isRunningUnix()
static boolean
isRunningWindows()
static void
setWorkingDirectoryAtStartup()
-
-
-
Field Detail
-
OS_WIN32
public static final java.lang.String OS_WIN32
- See Also:
- Constant Field Values
-
OS_WIN64
public static final java.lang.String OS_WIN64
- See Also:
- Constant Field Values
-
OS_MACOSX
public static final java.lang.String OS_MACOSX
- See Also:
- Constant Field Values
-
OS_MACOSCLASSIC
public static final java.lang.String OS_MACOSCLASSIC
- See Also:
- Constant Field Values
-
OS_LINUX
public static final java.lang.String OS_LINUX
- See Also:
- Constant Field Values
-
OS_BSD
public static final java.lang.String OS_BSD
- See Also:
- Constant Field Values
-
OS_RISCOS
public static final java.lang.String OS_RISCOS
- See Also:
- Constant Field Values
-
OS_BEOS
public static final java.lang.String OS_BEOS
- See Also:
- Constant Field Values
-
OS_UNKNOWN
public static final java.lang.String OS_UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
determineOS
public static java.lang.String determineOS()
-
is64Bit
public static boolean is64Bit()
-
is32Bit
public static boolean is32Bit()
-
isRunningWindows
public static boolean isRunningWindows()
-
isRunningMacOsX
public static boolean isRunningMacOsX()
-
isRunningLinux
public static boolean isRunningLinux()
-
isRunningUnix
public static boolean isRunningUnix()
-
setWorkingDirectoryAtStartup
public static void setWorkingDirectoryAtStartup()
-
getProMPackageDirectory
public static java.io.File getProMPackageDirectory()
Returns a handle to the ProM package folder. Creates the folder in case it does not yet exist.- Returns:
- The handle to the folder.
-
hasProMPackageDirectory
public static boolean hasProMPackageDirectory()
Returns whether the ProM package folder exists on this system.- Returns:
- Whether the folder exists.
-
getProMWorkspaceDirectory
public static java.io.File getProMWorkspaceDirectory()
Returns a handle to the ProM workspace folder. Creates the folder in case it does not yet exist.- Returns:
- The handle to the folder.
-
hasProMWorkspaceDirectory
public static boolean hasProMWorkspaceDirectory()
Returns whether the ProM workspace folder exists on this system.- Returns:
- Whether the folder exists.
-
getPhysicalMemory
public static long getPhysicalMemory()
-
-