java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaVMInitArgs
- All Implemented Interfaces:
JavaVMInitArgs
A javacore-based implementation of DTFJ JavaVMInitArgs. Note that javacores
contain the set of initialization options passed into the VM (in the ENVINFO
section of the javacore), but do not provide the JNI level or the setting of
the JNI 'ignoreUnrecognized' flag.
- See Also:
-
Field Summary
Fields declared in interface com.ibm.dtfj.java.JavaVMInitArgs
JNI_VERSION_1_1, JNI_VERSION_1_2, JNI_VERSION_1_4, JNI_VERSION_1_6 -
Constructor Summary
ConstructorsConstructorDescriptionJCJavaVMInitArgs(JCJavaRuntime javaRuntime, int version, boolean ignoreUnrecognized) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOption(JCJavaVMOption option) Not in DTFJ.booleanFetch the ignoreUnrecognized field from the JavaVMInitArgs structure used to create this VM.Fetch the options used to start this VM, in the order they were originally specified.intFetch the JNI version from the JavaVMInitArgs structure used to create this VM.
-
Constructor Details
-
JCJavaVMInitArgs
public JCJavaVMInitArgs(JCJavaRuntime javaRuntime, int version, boolean ignoreUnrecognized) throws JCInvalidArgumentsException - Throws:
JCInvalidArgumentsException
-
-
Method Details
-
getVersion
Description copied from interface:JavaVMInitArgsFetch the JNI version from the JavaVMInitArgs structure used to create this VM. See the JNI specification for the meaning for this field.- Specified by:
getVersionin interfaceJavaVMInitArgs- Returns:
- the JNI version
- Throws:
DataUnavailableCorruptDataException
-
getIgnoreUnrecognized
Description copied from interface:JavaVMInitArgsFetch the ignoreUnrecognized field from the JavaVMInitArgs structure used to create this VM. See the JNI specification for the meaning of this field.- Specified by:
getIgnoreUnrecognizedin interfaceJavaVMInitArgs- Returns:
- true if ignoreUnrecognized was set to a non-zero value with the VM was invoked
- Throws:
DataUnavailableCorruptDataException
-
getOptions
Description copied from interface:JavaVMInitArgsFetch the options used to start this VM, in the order they were originally specified.- Specified by:
getOptionsin interfaceJavaVMInitArgs- Returns:
- an Iterator over the collection of JavaVMOptions
- Throws:
DataUnavailable- See Also:
-
addOption
Not in DTFJ. Used only for building purposes.- Throws:
JCInvalidArgumentsException
-