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.
-
-
Constructor Summary
Constructors Constructor Description JVMInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringderbyVMLevel()Return Derby's understanding of the virtual machine's environment.private static java.lang.StringgetSystemProperty(java.lang.String name)Get system property.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 - not used, was for JDK 1.6
- 8 - not used, was for JDK 1.7
- 9 - J2SE_18 - JDK 1.8
-
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.
-
getSystemProperty
private static java.lang.String getSystemProperty(java.lang.String name)
Get system property.- Parameters:
name- name of the property
-
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
-
-