org.arakhne.vmutil
Interface OperatingSystemWrapper

All Known Implementing Classes:
AbstractOperatingSystemWrapper, OperatingSystemDiskUtilWrapper, OperatingSystemNativeWrapper, OperatingSystemUDevWrapper

interface OperatingSystemWrapper

Wrapper to the OS dependent 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:
6.3 (rev:285) 2011-10-14 12:02:41
Author:
Stéphane GALLAND
Maven Group Id:
org.arakhne.afc
Maven Artifact Id:
arakhneVmutils

Method Summary
 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.
 

Method Detail

getIdentificationType

OperatingSystemIdentificationType getIdentificationType()
Replies the type of identification provided by this wrapper.

Returns:
the type of identification provided by this wrapper.

getOSSerialNumber

String getOSSerialNumber(boolean enableSuperUser,
                         boolean enableGUI)
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

String getOSUUID(boolean enableSuperUser,
                 boolean enableGUI)
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.


Copyright © 2006-2011 Arakhnê.org Consortium. All rights reserved under LGPL license terms.