org.arakhne.vmutil
Class OperatingSystemNativeWrapper

java.lang.Object
  extended by org.arakhne.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:
6.3 (rev:285) 2011-10-14 12:02:41
Author:
Stéphane GALLAND
Maven Group Id:
org.arakhne.afc
Maven Artifact Id:
arakhneVmutils

Constructor Summary
OperatingSystemNativeWrapper(OperatingSystemIdentificationType type)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatingSystemNativeWrapper

public OperatingSystemNativeWrapper(OperatingSystemIdentificationType type)
Parameters:
type - is the type of identification supported by the wrapper.
Method Detail

getOSSerialNumber

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

getIdentificationType

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

Specified by:
getIdentificationType in interface OperatingSystemWrapper
Returns:
the type of identification provided by this wrapper.


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