public class TerracottaCommandLineEnvironment extends Object implements Serializable
WARNING
This object goes sadly through a lot of ignite calls... This is really error-prone because it represents a specific env for one host. Only the Java args are relevant to be transferred remotely to spawn a new Ignite agent.
| Modifier and Type | Field and Description |
|---|---|
static TerracottaCommandLineEnvironment |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
buildEnv(Map<String,String> overrides) |
Path |
getJavaHome() |
Set<String> |
getJavaOpts() |
Set<String> |
getJavaVendors() |
String |
getJavaVersion() |
boolean |
isToolchainBased() |
String |
toString() |
TerracottaCommandLineEnvironment |
withCurrentJavaHome() |
TerracottaCommandLineEnvironment |
withJava(String javaVersion,
String... javaVendors) |
TerracottaCommandLineEnvironment |
withJavaOpts(String... javaOpts) |
TerracottaCommandLineEnvironment |
withJavaVendors(String... javaVendors) |
TerracottaCommandLineEnvironment |
withJavaVersion(String javaVersion) |
public static final TerracottaCommandLineEnvironment DEFAULT
public boolean isToolchainBased()
public TerracottaCommandLineEnvironment withJavaVersion(String javaVersion)
public TerracottaCommandLineEnvironment withJavaVendors(String... javaVendors)
public TerracottaCommandLineEnvironment withJava(String javaVersion, String... javaVendors)
public TerracottaCommandLineEnvironment withJavaOpts(String... javaOpts)
public TerracottaCommandLineEnvironment withCurrentJavaHome()
public Path getJavaHome()
public String getJavaVersion()
Copyright © 2022. All rights reserved.