OsUtilities¶
-
public final class
OsUtilities¶ Utility class to perform various tasks related to details about the underlying operating system of a process.
- Author
swrede, jwienke
Methods¶
deriveMachineType¶
-
public static MachineType
deriveMachineType(String identifier)¶ Tries to guess a machine type from a name returned by
getOsArchitecture().- Parameters
identifier – name of machine type, not
null- Returns
guessed machine type, not
null
deriveMachineTypeName¶
-
public static String
deriveMachineTypeName(String identifier)¶ Tries to determine a normalized machine type from a name returned by
getOsArchitecture().- Parameters
identifier – name of machine type, not
null- Returns
guessed machine type, not
null
deriveOsFamily¶
-
public static OsFamily
deriveOsFamily(String identifier)¶ Tries to determine the operating system family from a concrete operating system name returned by
getOsName().- Parameters
identifier – the concrete operating system name, not
null- Returns
identified operating system family.
deriveOsFamilyName¶
-
public static String
deriveOsFamilyName(String identifier)¶ Tries to determine a normalized operating system family from a concrete operating system name returned by
getOsName().- Parameters
identifier – the concrete operating system name, not
null- Returns
identified operating system family.