Class 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 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 interface OperatingSystemWrapper
        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 interface OperatingSystemWrapper
        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.