public final class JvmType extends Object
| Modifier and Type | Method and Description |
|---|---|
static JvmType |
createFromJavaExecutable(String javaExecutable,
boolean forLaunch)
Create a
JvmType based on the location of the java executable. |
static JvmType |
createFromJavaHome(String javaHome,
boolean forLaunch)
Create a
JvmType based on the location of the root dir of the JRE/JDK installation. |
static JvmType |
createFromSystemProperty(boolean forLaunch)
Create a
JvmType based on the location of the root dir of the JRE/JDK installation, as specified
by the system property java.home. |
boolean |
equals(Object o) |
Collection<String> |
getDefaultArguments() |
String |
getJavaExecutable() |
int |
hashCode() |
boolean |
isForLaunch()
Was this object created for the purpose of launching a process, or simply as a holder of data?
|
boolean |
isModularJvm()
Whether this JVM type is modular.
|
public String getJavaExecutable()
public boolean isForLaunch()
public boolean isModularJvm()
isForLaunch() returns
true, as otherwise checks for JVM modularity may not be performed or may not be accurate.true if the JVM is known to be modular, false otherwisepublic Collection<String> getDefaultArguments()
public static JvmType createFromJavaHome(String javaHome, boolean forLaunch)
JvmType based on the location of the root dir of the JRE/JDK installation.javaHome - the root dir of the JRE/JDK installation. Cannot be null or emptyforLaunch - true if the created object will be used for launching servers; false
if it is simply a data holder. A value of true will disable
some validity checks and may disable determining if the JVM is modularJvmType. Will not return nullIllegalStateException - if the JvmType cannot be determined.public static JvmType createFromJavaExecutable(String javaExecutable, boolean forLaunch)
JvmType based on the location of the java executable.javaExecutable - the location of the java executable. Cannot be null or emptyforLaunch - true if the created object will be used for launching servers; false
if it is simply a data holder. A value of true will disable
some validity checks and may disable determining if the JVM is modularJvmType. Will not return nullpublic static JvmType createFromSystemProperty(boolean forLaunch)
JvmType based on the location of the root dir of the JRE/JDK installation, as specified
by the system property java.home.forLaunch - true if the created object will be used for launching servers; false
if it is simply a data holder. A value of true will disable
some validity checks and may disable determining if the JVM is modularJvmType. Will not return nullCopyright © 2019 JBoss by Red Hat. All rights reserved.