|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OperatingSystem>
org.arakhne.vmutil.OperatingSystem
public enum OperatingSystem
This is a list of supported operating system.
| Enum Constant Summary | |
|---|---|
AIX
AIX®. |
|
BSD
Standard BSD. |
|
FREEBSD
Free BSD. |
|
HPUX
HPUX®. |
|
LINUX
Linux distribution. |
|
MACOSX
Mac OS X®. |
|
NETBSD
Net BSD. |
|
OPENBSD
Open BSD. |
|
OTHER
Unknown operating systems. |
|
SOLARIS
Solaris®. |
|
WIN
Windows®. |
|
| Method Summary | |
|---|---|
static OperatingSystem |
getCurrentOS()
Replies the current operating system. |
static String |
getCurrentOSName()
Replies the name of the current OS. |
static String |
getCurrentOSVersion()
Replies the version of the current OS. |
static OperatingSystemIdentificationType |
getIdentificationType()
Replies the type of identification found on this operating system. |
static int |
getOperatingSystemArchitectureDataModel()
Replies the data model of the current operating system: 32 or 64 bits. |
static String |
getOSSerialNumber()
Get the OS serial number. |
static String |
getOSSerialNumber(boolean enableSuperUser,
boolean enableGUI)
Get the OS serial number. |
static String |
getOSUUID()
Get the OS UUID. |
static String |
getOSUUID(boolean enableSuperUser,
boolean enableGUI)
Get the OS UUID. |
static boolean |
is32BitOperatingSystem()
Replies if the current operating system is 32bit. |
static boolean |
is64BitOperatingSystem()
Replies if the current operating system is 64bit. |
boolean |
isCurrentOS()
Replies if the current OperatingSystem constant is corresponding to the current operating system. |
boolean |
isUnixCompliant()
Replies of this OS is Unix compliant. |
static OperatingSystem |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OperatingSystem[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OperatingSystem WIN
public static final OperatingSystem LINUX
public static final OperatingSystem SOLARIS
public static final OperatingSystem MACOSX
public static final OperatingSystem FREEBSD
public static final OperatingSystem NETBSD
public static final OperatingSystem BSD
public static final OperatingSystem OPENBSD
public static final OperatingSystem AIX
public static final OperatingSystem HPUX
public static final OperatingSystem OTHER
| Method Detail |
|---|
public static OperatingSystem[] values()
for (OperatingSystem c : OperatingSystem.values()) System.out.println(c);
public static OperatingSystem valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static OperatingSystemIdentificationType getIdentificationType()
public boolean isCurrentOS()
true if the current operating system corresponds to this constant,
otherwise falsepublic boolean isUnixCompliant()
true if this constant corresponds to a Unix-like operating system,
otherwise falsepublic static String getCurrentOSName()
System.getProperty(java.lang.String)public static String getCurrentOSVersion()
System.getProperty(java.lang.String)public static OperatingSystem getCurrentOS()
public static int getOperatingSystemArchitectureDataModel()
0 if
it could not be determined.public static boolean is64BitOperatingSystem()
true if the operating system is 64bits, othewise
falsepublic static boolean is32BitOperatingSystem()
true if the operating system is 32bits, othewise
falsepublic static String getOSSerialNumber()
This function does not allow to run any system command with the super-user rights, and it disable any additional GUI.
public static String getOSSerialNumber(boolean enableSuperUser,
boolean enableGUI)
enableSuperUser - indicates if the super-user commands are enabled or not.enableGUI - indicates if any additional GUI could be opened, or not.
public static String getOSUUID()
This function does not allow to run any system command with the super-user rights, and it disable any additional GUI.
public static String getOSUUID(boolean enableSuperUser,
boolean enableGUI)
enableSuperUser - indicates if the super-user commands are enabled or not.enableGUI - indicates if any additional GUI could be opened, or not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||