org.apache.derby.iapi.services.info
Class JVMInfo
- java.lang.Object
-
- org.apache.derby.iapi.services.info.JVMInfo
-
public abstract class JVMInfo extends java.lang.ObjectThis class is used to determine which Java specification Derby will run at. For a useful discussion of how this class is used, please see DERBY-3176.
-
-
Field Summary
Fields Modifier and Type Field and Description static intJ2SE_16static intJ2SE_17static intJ2SE_18static intJDK_IDThe JVM's runtime environment.
-
Constructor Summary
Constructors Constructor and Description JVMInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringderbyVMLevel()Return Derby's understanding of the virtual machine's environment.static booleanhasJNDI()Determine whether we are running in a constrained environment.static booleanisIBMJVM()Check whether this is IBM jvm.static booleanisSunJVM()Check whether this is sun jvm.static voidjavaDump()For IBM jvm, this method will dump more diagnostic information to file.static intjdbcMajorVersion()static intjdbcMinorVersion()
-
-
-
Field Detail
-
JDK_ID
public static final int JDK_ID
The JVM's runtime environment.- 1 - not used was JDK 1.1
- 2 - not used, was for JDK 1.2 and 1.3
- 4 - not used, was for JDK 1.4.0 or 1.4.1
- 5 - not used, was for JDK 1.4.2
- 6 - not used, was for JDK 1.5
- 7 - J2SE_16 - JDK 1.6
- 8 - J2SE_17 - JDK 1.7
- 9 - J2SE_18 - JDK 1.8
-
J2SE_16
public static final int J2SE_16
- See Also:
- Constant Field Values
-
J2SE_17
public static final int J2SE_17
- See Also:
- Constant Field Values
-
J2SE_18
public static final int J2SE_18
- See Also:
- Constant Field Values
-
-
Method Detail
-
jdbcMajorVersion
public static int jdbcMajorVersion()
-
jdbcMinorVersion
public static int jdbcMinorVersion()
-
derbyVMLevel
public static java.lang.String derbyVMLevel()
Return Derby's understanding of the virtual machine's environment.
-
isSunJVM
public static final boolean isSunJVM()
Check whether this is sun jvm.- Returns:
- true if it is sun jvm, false if it is not sun jvm
-
isIBMJVM
public static final boolean isIBMJVM()
Check whether this is IBM jvm.- Returns:
- true if it is IBM jvm, false if it is not IBM jvm
-
javaDump
public static void javaDump()
For IBM jvm, this method will dump more diagnostic information to file. JVM specific code for other vender can be added. DERBY-4856
-
hasJNDI
public static boolean hasJNDI()
Determine whether we are running in a constrained environment.- Returns:
- true if JNDI is available
-
-
DataMelt 3.0 © DataMelt by jWork.ORG