net.sf.mmm.util.lang.api
Interface SystemInformation

All Known Implementing Classes:
SystemInformationImpl

public interface SystemInformation

This is the interface for a data-object containing structured of an operating system.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
See Also:
SystemUtil.getSystemInformation()

Field Summary
static String SYSTEM_TYPE_BSD
          The system-type for a BSD operating system (freeBSD, openBSD, etc.).
static String SYSTEM_TYPE_LINUX
          The system-type for a distribution of Linux (android, ubuntu, kubuntu, debian, openSUSE, gentoo, fedora, mandriva, etc.).
static String SYSTEM_TYPE_MAC_IOS
          The system-type for a variant of Apples operating system ("Mac OS", "Mac OS X" or any variant of "iOS").
static String SYSTEM_TYPE_MAINFRAIME
          The system-type for operating systems dedicated for mainframe machines ([Open]VMS, z/OS, BS2000, OS/360, OS/390, etc.).
static String SYSTEM_TYPE_OTHER
          The system-type for anything else that is not further classified.
static String SYSTEM_TYPE_UNIX
          The system-type for Unix explicitly excluding Mac OS, BSD-systems and Linux.
static String SYSTEM_TYPE_WINDOWS
          The system-type for a variant of Microsoft Windows (including mobile variants).
 
Method Summary
 String getSystemArchitecture()
          This method gets the architecture of the operating system running this java virtual machine.
 String getSystemName()
          This method gets the name of the operating system running this java virtual machine.
 String getSystemType()
          This method gets the type of the operating system running this java virtual machine.
 String getSystemVersion()
          This method gets the version of the operating system running this java virtual machine in lower-case.
 boolean isLimitedDevice()
          This method determines if the operating system running this java virtual machine is for mobile or embedded devices or maybe tablets but not for full-fledged PC or server machines.
 

Field Detail

SYSTEM_TYPE_WINDOWS

static final String SYSTEM_TYPE_WINDOWS
The system-type for a variant of Microsoft Windows (including mobile variants).

See Also:
Constant Field Values

SYSTEM_TYPE_MAC_IOS

static final String SYSTEM_TYPE_MAC_IOS
The system-type for a variant of Apples operating system ("Mac OS", "Mac OS X" or any variant of "iOS").

See Also:
Constant Field Values

SYSTEM_TYPE_LINUX

static final String SYSTEM_TYPE_LINUX
The system-type for a distribution of Linux (android, ubuntu, kubuntu, debian, openSUSE, gentoo, fedora, mandriva, etc.).

See Also:
Constant Field Values

SYSTEM_TYPE_UNIX

static final String SYSTEM_TYPE_UNIX
The system-type for Unix explicitly excluding Mac OS, BSD-systems and Linux. This means operating systems like "[Open]Solaris", "HP-UX", "AIX", "DG/UX", "IRIX" are considered of this type.

See Also:
Constant Field Values

SYSTEM_TYPE_BSD

static final String SYSTEM_TYPE_BSD
The system-type for a BSD operating system (freeBSD, openBSD, etc.).

See Also:
Constant Field Values

SYSTEM_TYPE_MAINFRAIME

static final String SYSTEM_TYPE_MAINFRAIME
The system-type for operating systems dedicated for mainframe machines ([Open]VMS, z/OS, BS2000, OS/360, OS/390, etc.). A mainframe is a (traditional) high-end server.

See Also:
Constant Field Values

SYSTEM_TYPE_OTHER

static final String SYSTEM_TYPE_OTHER
The system-type for anything else that is not further classified. Please note that in new releases of this project, a new classification can be added and systems that have been in SYSTEM_TYPE_OTHER are then of a new type.

See Also:
Constant Field Values
Method Detail

getSystemName

String getSystemName()
This method gets the name of the operating system running this java virtual machine. Here is an incomplete list of possible results:

Returns:
the OS name.
See Also:
SystemUtil.PROPERTY_OS_NAME

getSystemArchitecture

String getSystemArchitecture()
This method gets the architecture of the operating system running this java virtual machine. Typical results are:

Returns:
the OS name.
See Also:
SystemUtil.PROPERTY_OS_NAME

getSystemVersion

String getSystemVersion()
This method gets the version of the operating system running this java virtual machine in lower-case.

Returns:
the OS name.
See Also:
SystemUtil.PROPERTY_OS_VERSION

getSystemType

String getSystemType()
This method gets the type of the operating system running this java virtual machine. The type is not something directly provided by the JRE. It is defined by this API and is derived from the system-name to make things easier for you.

Returns:
the type of the operating system as one of the SYSTEM_TYPE_* constants defined in this interface.
See Also:
SYSTEM_TYPE_WINDOWS, SYSTEM_TYPE_MAC_IOS, SYSTEM_TYPE_LINUX, SYSTEM_TYPE_BSD, SYSTEM_TYPE_UNIX, SYSTEM_TYPE_OTHER

isLimitedDevice

boolean isLimitedDevice()
This method determines if the operating system running this java virtual machine is for mobile or embedded devices or maybe tablets but not for full-fledged PC or server machines. In such case you can assume that you are running on a mobile or embedded device. Please note that this is NOT a guarantee.

Returns:
true if operating system is for limited device, false otherwise.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.