Module org.arakhne.afc.core.vmutils
Package org.arakhne.afc.vmutil
Class OperatingSystemNativeWrapper
- java.lang.Object
-
- org.arakhne.afc.vmutil.OperatingSystemNativeWrapper
-
- All Implemented Interfaces:
OperatingSystemWrapper
class OperatingSystemNativeWrapper extends Object implements OperatingSystemWrapper
Wrapper to the native 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.0
- 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 OperatingSystemNativeWrapper(OperatingSystemIdentificationType type)
Constructor.
-
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.
-
-
-
Constructor Detail
-
OperatingSystemNativeWrapper
OperatingSystemNativeWrapper(OperatingSystemIdentificationType type)
Constructor.- Parameters:
type
- is the type of identification supported by the wrapper.
-
-
Method Detail
-
getOSSerialNumber
public String getOSSerialNumber(boolean enableSuperUser, boolean enableGUI)
Description copied from interface:OperatingSystemWrapper
Get the OS serial number.- Specified by:
getOSSerialNumber
in interfaceOperatingSystemWrapper
- 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.- Specified by:
getOSUUID
in interfaceOperatingSystemWrapper
- 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.- Specified by:
getIdentificationType
in interfaceOperatingSystemWrapper
- Returns:
- the type of identification provided by this wrapper.
-
-