- java.lang.Object
-
- org.arakhne.afc.vmutil.AbstractOperatingSystemWrapper
-
- org.arakhne.afc.vmutil.OperatingSystemUDevWrapper
-
- All Implemented Interfaces:
OperatingSystemWrapper
class OperatingSystemUDevWrapper extends AbstractOperatingSystemWrapper
Wrapper to the MacOS functions. This class was introduced to avoid to kill the current JVM even if the native functions are unloadable. In this way, on operating system without the support for the native libs is still able to be run.- Since:
- 6.3
- Version:
- 17.0 2020-01-04 14:41:35
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- vmutils
-
-
Constructor Summary
Constructors Constructor Description OperatingSystemUDevWrapper()
Construct the wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatingSystemIdentificationType
getIdentificationType()
Replies the type of identification provided by this wrapper.String
getOSSerialNumber(boolean enableSuperUser, boolean enableGUI)
Get the OS serial number.String
getOSUUID(boolean enableSuperUser, boolean enableGUI)
Get the OS UUID.-
Methods inherited from class org.arakhne.afc.vmutil.AbstractOperatingSystemWrapper
cut, grep, runCommand
-
-
-
-
Method Detail
-
getOSSerialNumber
public String getOSSerialNumber(boolean enableSuperUser, boolean enableGUI)
Description copied from interface:OperatingSystemWrapper
Get the OS serial number.- Parameters:
enableSuperUser
- indicates if the super-user commands are enabled or not.enableGUI
- indicates if any additional GUI could be opened, or not.- Returns:
- the serial number associated to the current operating system.
-
getOSUUID
public String getOSUUID(boolean enableSuperUser, boolean enableGUI)
Description copied from interface:OperatingSystemWrapper
Get the OS UUID.- Parameters:
enableSuperUser
- indicates if the super-user commands are enabled or not.enableGUI
- indicates if any additional GUI could be opened, or not.- Returns:
- an unique identifier for the current operating system.
-
getIdentificationType
public OperatingSystemIdentificationType getIdentificationType()
Description copied from interface:OperatingSystemWrapper
Replies the type of identification provided by this wrapper.- Returns:
- the type of identification provided by this wrapper.
-
-