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
ConstructorDescriptionJCJavaVMInitArgs
(JCJavaRuntime javaRuntime, int version, boolean ignoreUnrecognized) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOption
(JCJavaVMOption option) Not in DTFJ.boolean
Fetch 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.int
Fetch 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:JavaVMInitArgs
Fetch the JNI version from the JavaVMInitArgs structure used to create this VM. See the JNI specification for the meaning for this field.- Specified by:
getVersion
in interfaceJavaVMInitArgs
- Returns:
- the JNI version
- Throws:
DataUnavailable
CorruptDataException
-
getIgnoreUnrecognized
Description copied from interface:JavaVMInitArgs
Fetch the ignoreUnrecognized field from the JavaVMInitArgs structure used to create this VM. See the JNI specification for the meaning of this field.- Specified by:
getIgnoreUnrecognized
in interfaceJavaVMInitArgs
- Returns:
- true if ignoreUnrecognized was set to a non-zero value with the VM was invoked
- Throws:
DataUnavailable
CorruptDataException
-
getOptions
Description copied from interface:JavaVMInitArgs
Fetch the options used to start this VM, in the order they were originally specified.- Specified by:
getOptions
in interfaceJavaVMInitArgs
- Returns:
- an Iterator over the collection of JavaVMOptions
- Throws:
DataUnavailable
- See Also:
-
addOption
Not in DTFJ. Used only for building purposes.- Throws:
JCInvalidArgumentsException
-