javax.tools.diagnostics.runtime.java
Interface JavaVMInitArgs


public interface JavaVMInitArgs

This class models the JavaVMInitArgs C structure passed to JNI_CreateJavaVM to create this Java Virtual Machine Typically the options passed to the JVM are similar but necessarily identical to these used to invoke the Java Virtual Machine from a command line.


Field Summary
static int JNI_VERSION_1_1
          The JNI specified version constant for the Java 1.1 version of JNI
static int JNI_VERSION_1_2
          The JNI specified version constant for the Java 1.2 version of JNI
static int JNI_VERSION_1_4
          The JNI specified version constant for the Java 1.4 version of JNI
static int JNI_VERSION_1_6
          The JNI specified version constant for the Java 1.6 version of JNI
 
Method Summary
 boolean getIgnoreUnrecognized()
          Fetch the ignoreUnrecognized field from the JavaVMInitArgs structure used to create this Java Virtual Machine.
 java.util.List<JavaVMOption> getOptions()
          Fetch the options used to start this Java Virtual Machine, in the order they were originally specified.
 int getVersion()
          Fetch the JNI version from the JavaVMInitArgs structure used to create this Java Virtual Machine.
 

Field Detail

JNI_VERSION_1_1

static final int JNI_VERSION_1_1
The JNI specified version constant for the Java 1.1 version of JNI

See Also:
Constant Field Values

JNI_VERSION_1_2

static final int JNI_VERSION_1_2
The JNI specified version constant for the Java 1.2 version of JNI

See Also:
Constant Field Values

JNI_VERSION_1_4

static final int JNI_VERSION_1_4
The JNI specified version constant for the Java 1.4 version of JNI

See Also:
Constant Field Values

JNI_VERSION_1_6

static final int JNI_VERSION_1_6
The JNI specified version constant for the Java 1.6 version of JNI

See Also:
Constant Field Values
Method Detail

getVersion

int getVersion()
               throws DataUnavailable,
                      CorruptDataException
Fetch the JNI version from the JavaVMInitArgs structure used to create this Java Virtual Machine. See the JNI specification for the meaning for this field.

Returns:
the JNI version
Throws:
DataUnavailable
CorruptDataException

getIgnoreUnrecognized

boolean getIgnoreUnrecognized()
                              throws DataUnavailable,
                                     CorruptDataException
Fetch the ignoreUnrecognized field from the JavaVMInitArgs structure used to create this Java Virtual Machine. See the JNI specification for the meaning for this field.

Returns:
true if ignoreUnrecognized was set to a non-zero value when the Java Virtual Machine was invoked
Throws:
DataUnavailable
CorruptDataException

getOptions

java.util.List<JavaVMOption> getOptions()
                                        throws DataUnavailable
Fetch the options used to start this Java Virtual Machine, in the order they were originally specified. The returned list follows the standard semantics for javax.tools.diagnostics collections The order of the options returned in the list is the same as that passed to the to JNI_CreateJavaVM function. A list is always returned but could be empty

Returns:
an List of JavaVMOptions
Throws:
DataUnavailable
See Also:
JavaVMOption


Copyright © 2010. All Rights Reserved.