| java.lang.Object org.netbeans.lib.profiler.global.Platform
Platform | public class Platform implements CommonConstants(Code) | | Determination of the current platform (OS, hardware) and related services.
author: Tomas Hurka author: Misha Dmitriev author: Ian Formanek |
Field Summary | |
final public static int | OS_AIX Operating system is IBM AIX. | final public static int | OS_HP Operating system is HP-UX. | final public static int | OS_IRIX Operating system is SGI IRIX. | final public static int | OS_LINUX Operating system is Linux. | final public static int | OS_MAC Operating system is Mac. | final public static int | OS_OS2 Operating system is OS/2. | final public static int | OS_OTHER Operating system is unknown. | final public static int | OS_SOLARIS Operating system is Solaris. | final public static int | OS_SUNOS Operating system is Sun OS. | final public static int | OS_TRU64 | final public static int | OS_UNIX_MASK A mask for Unix platforms. | final public static int | OS_VMS | final public static int | OS_WIN2000 Operating system is Windows 2000. | final public static int | OS_WIN95 Operating system is Windows 95. | final public static int | OS_WIN98 Operating system is Windows 98. | final public static int | OS_WINDOWS_MASK A mask for Windows platforms. | final public static int | OS_WINNT Operating system is Windows NT. | final public static int | OS_WIN_OTHER |
Method Summary | |
public static String | getAgentNativeLibFullName(String fullAgentPath, boolean fullPathToLibSpecified, String jdkString, int architecture) Given the name of the directory containing the JFluid native libaries (either just the root JFluid libs dir,
or really the full path, depending on fullPathToLibSpecified parameter), return the full platform-dependent
name for the "profilerinterface" library contained in that directory. | public static int | getJDKMinorNumber(String jdkVersionString) | public static int | getJDKVersionNumber() | public static String | getJDKVersionString(String javaVersionString) Returns the string for, essentially, JFluid directory corresponding to a particular JDK version the TA runs on. | public static String | getJDKVersionString() Returns the string for, essentially, JFluid directory corresponding to a particular JDK version the TA runs on. | public static String | getJFluidNativeLibDirName(String fullJFluidPath, String jdkString, int architecture) | public static int | getOperatingSystem() Get the operating system on which we are is running. | public static int | getOperatingSystem(String osName) | public static String | getProfilerUserDir() | public static int | getSystemArchitecture() | public static boolean | is32bitArchitecture() | public static boolean | is64bitArchitecture() | public static boolean | isLinux() | public static boolean | isLinux(String osName) | public static boolean | isMac() | public static boolean | isSolaris() | public static boolean | isSolarisIntel() | public static boolean | isSolarisSparc() | public static boolean | isUnix() Test whether we are running on some variant of Unix. | public static boolean | isWindows() | public static boolean | isWindows(String osName) | public static boolean | supportsDynamicAttach(String jdkVersionString) | public static boolean | supportsThreadSleepingStateMonitoring(String jdkVersionString) | public static boolean | thisVMSupportsThreadSleepingStateMonitoring() |
OS_AIX | final public static int OS_AIX(Code) | | Operating system is IBM AIX.
|
OS_HP | final public static int OS_HP(Code) | | Operating system is HP-UX.
|
OS_IRIX | final public static int OS_IRIX(Code) | | Operating system is SGI IRIX.
|
OS_LINUX | final public static int OS_LINUX(Code) | | Operating system is Linux.
|
OS_MAC | final public static int OS_MAC(Code) | | Operating system is Mac.
|
OS_OS2 | final public static int OS_OS2(Code) | | Operating system is OS/2.
|
OS_OTHER | final public static int OS_OTHER(Code) | | Operating system is unknown.
|
OS_SOLARIS | final public static int OS_SOLARIS(Code) | | Operating system is Solaris.
|
OS_SUNOS | final public static int OS_SUNOS(Code) | | Operating system is Sun OS.
|
OS_TRU64 | final public static int OS_TRU64(Code) | | Operating system is Compaq TRU64 Unix
|
OS_UNIX_MASK | final public static int OS_UNIX_MASK(Code) | | A mask for Unix platforms.
|
OS_VMS | final public static int OS_VMS(Code) | | Operating system is Compaq OpenVMS
|
OS_WIN2000 | final public static int OS_WIN2000(Code) | | Operating system is Windows 2000.
|
OS_WIN95 | final public static int OS_WIN95(Code) | | Operating system is Windows 95.
|
OS_WIN98 | final public static int OS_WIN98(Code) | | Operating system is Windows 98.
|
OS_WINDOWS_MASK | final public static int OS_WINDOWS_MASK(Code) | | A mask for Windows platforms.
|
OS_WINNT | final public static int OS_WINNT(Code) | | Operating system is Windows NT.
|
OS_WIN_OTHER | final public static int OS_WIN_OTHER(Code) | | Operating system is one of the Windows variants but we don't know which one it is
|
getAgentNativeLibFullName | public static String getAgentNativeLibFullName(String fullAgentPath, boolean fullPathToLibSpecified, String jdkString, int architecture)(Code) | | Given the name of the directory containing the JFluid native libaries (either just the root JFluid libs dir,
or really the full path, depending on fullPathToLibSpecified parameter), return the full platform-dependent
name for the "profilerinterface" library contained in that directory. If non-null jdkString is specified, it
is used in the resulting path; otherwise the VM is queried for its version and the resulting string is used.
Parameters: fullAgentPath - The path to the library Parameters: fullPathToLibSpecified - whether or not a full path is specified (ending at the platform level) Parameters: jdkString - CommonConstants.JDK_15_STRING A path to the native library to be used for this platform |
getJDKMinorNumber | public static int getJDKMinorNumber(String jdkVersionString)(Code) | | Returns JDK minor version
|
getJDKVersionNumber | public static int getJDKVersionNumber()(Code) | | Returns the JFluid-internal JDK version number
|
getJDKVersionString | public static String getJDKVersionString(String javaVersionString)(Code) | | Returns the string for, essentially, JFluid directory corresponding to a particular JDK version the TA runs on.
Currently it's "jdk15" for JDK 1.5 version and "jdk16" for JDK 1.6 version.
|
getJDKVersionString | public static String getJDKVersionString()(Code) | | Returns the string for, essentially, JFluid directory corresponding to a particular JDK version the TA runs on.
Currently it's "jdk15" for JDK 1.5 version, "jdk16" for JDK 1.6 version and jdk17 for JDK 1.7 version.
|
getJFluidNativeLibDirName | public static String getJFluidNativeLibDirName(String fullJFluidPath, String jdkString, int architecture)(Code) | | |
getOperatingSystem | public static int getOperatingSystem()(Code) | | Get the operating system on which we are is running.
Returns one of the OS_* constants (such as
Platform.OS_WINNT )
|
getOperatingSystem | public static int getOperatingSystem(String osName)(Code) | | |
getSystemArchitecture | public static int getSystemArchitecture()(Code) | | Returns system architecture: 32/64bit
|
is32bitArchitecture | public static boolean is32bitArchitecture()(Code) | | Returns true if current system architecture is 32bit
|
is64bitArchitecture | public static boolean is64bitArchitecture()(Code) | | Returns true if current system architecture is 64bit
|
isLinux | public static boolean isLinux()(Code) | | Test whether we are running on Linux
|
isLinux | public static boolean isLinux(String osName)(Code) | | Test whether the supplied OS name is Linux
|
isMac | public static boolean isMac()(Code) | | |
isSolaris | public static boolean isSolaris()(Code) | | Test whether we are running on Solaris
|
isSolarisIntel | public static boolean isSolarisIntel()(Code) | | Test whether we are running on Solaris on Intel processor
|
isSolarisSparc | public static boolean isSolarisSparc()(Code) | | Test whether we are running on Solaris on SPARC processor
|
isUnix | public static boolean isUnix()(Code) | | Test whether we are running on some variant of Unix. Linux is included as well as the commercial vendors.
|
isWindows | public static boolean isWindows()(Code) | | Test whether we are is running on some variant of Windows
|
isWindows | public static boolean isWindows(String osName)(Code) | | Test whether the supplied OS name is some variant of Windows
|
supportsDynamicAttach | public static boolean supportsDynamicAttach(String jdkVersionString)(Code) | | Returns true if the given JVM version supports dynaimc attach
|
supportsThreadSleepingStateMonitoring | public static boolean supportsThreadSleepingStateMonitoring(String jdkVersionString)(Code) | | Returns true if the given JVM version passed as String correctly reports "sleeping" state
|
thisVMSupportsThreadSleepingStateMonitoring | public static boolean thisVMSupportsThreadSleepingStateMonitoring()(Code) | | Returns true if the current JVM correctly reports "sleeping" state
|
|
|