public final class JvmInfo
extends java.lang.Object
This class provides information about the current Java Virtual Machine in a unified format. The information about the Java Virtual Machine is retrieved during static initialization, therefore if the Java Virtual Machine is not recognized a RuntimeException exception will be thrown and this class will be rendered useless.
Modifier and Type | Class and Description |
---|---|
static class |
JvmInfo.DataModel
Java Virtual Machine data model (i.e., number of bits).
|
static class |
JvmInfo.Name
Enumeration of Java Virtual Machine names.
|
static class |
JvmInfo.Vendor
Enumeration of Java Virtual Machine vendors.
|
Modifier and Type | Method and Description |
---|---|
static JvmInfo.DataModel |
getDataModel()
Retrieves the data model of the Java Virtual Machine.
|
static java.lang.String |
getDataModelString()
Retrieves the data model of the Java Virtual Machine as a string.
|
static JvmInfo.Name |
getName()
Retrieves the name of the Java Virtual Machine.
|
static java.lang.String |
getNameString()
Retrieves the name of the Java Virtual Machine as a string.
|
static java.lang.String |
getSummaryString()
Retrieves a summary of the Java Virtual Machine information as a string.
|
static JvmInfo.Vendor |
getVendor()
Retrieves the vendor of the Java Virtual Machine.
|
static java.lang.String |
getVendorString()
Retrieves the vendor of the Java Virtual Machine as a string.
|
static java.lang.String |
getVersionString()
Retrieves the version of the Java Virtual Machine.
|
public static JvmInfo.Name getName()
public static java.lang.String getNameString()
public static JvmInfo.Vendor getVendor()
public static java.lang.String getVendorString()
public static JvmInfo.DataModel getDataModel()
public static java.lang.String getDataModelString()
public static java.lang.String getVersionString()
public static java.lang.String getSummaryString()
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.