Package org.terracotta.angela.common
Class TerracottaCommandLineEnvironment
- java.lang.Object
-
- org.terracotta.angela.common.TerracottaCommandLineEnvironment
-
- All Implemented Interfaces:
Serializable
public class TerracottaCommandLineEnvironment extends Object implements Serializable
Instances of this class are immutable.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.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TerracottaCommandLineEnvironmentDEFAULT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>buildEnv(Map<String,String> overrides)PathgetJava()PathgetJavaHome()Set<String>getJavaOpts()Set<String>getJavaVendors()StringgetJavaVersion()booleanisToolchainBased()StringtoString()TerracottaCommandLineEnvironmentwithCurrentJavaHome()TerracottaCommandLineEnvironmentwithJava(String javaVersion, String... javaVendors)TerracottaCommandLineEnvironmentwithJavaOpts(String... javaOpts)TerracottaCommandLineEnvironmentwithJavaVendors(String... javaVendors)TerracottaCommandLineEnvironmentwithJavaVersion(String javaVersion)
-
-
-
Field Detail
-
DEFAULT
public static final TerracottaCommandLineEnvironment DEFAULT
-
-
Method Detail
-
isToolchainBased
public boolean isToolchainBased()
-
withJavaVersion
public TerracottaCommandLineEnvironment withJavaVersion(String javaVersion)
-
withJavaVendors
public TerracottaCommandLineEnvironment withJavaVendors(String... javaVendors)
-
withJava
public TerracottaCommandLineEnvironment withJava(String javaVersion, String... javaVendors)
-
withJavaOpts
public TerracottaCommandLineEnvironment withJavaOpts(String... javaOpts)
-
withCurrentJavaHome
public TerracottaCommandLineEnvironment withCurrentJavaHome()
-
getJava
public Path getJava()
-
getJavaHome
public Path getJavaHome()
-
getJavaVersion
public String getJavaVersion()
-
-