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 |
withJavaHome(Path home)
Deprecated.
Use
withCurrentJavaHome() instead. |
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 withJavaOpts(String... javaOpts)
public TerracottaCommandLineEnvironment withCurrentJavaHome()
@Deprecated public TerracottaCommandLineEnvironment withJavaHome(Path home)
withCurrentJavaHome() instead.public Path getJavaHome()
public String getJavaVersion()
Copyright © 2022. All rights reserved.