public class DefaultExecutionEnvironment extends Object implements ExecutionEnvironment
Constructor and Description |
---|
DefaultExecutionEnvironment(com.google.common.collect.ImmutableMap<String,String> environment,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
int |
getAvailableCores() |
Optional<String> |
getenv(String key)
Gets the environment variable indicated by the specified key.
|
String |
getHostname() |
Network |
getLikelyActiveNetwork() |
Platform |
getPlatform() |
long |
getTotalMemory() |
String |
getUsername() |
Optional<String> |
getWifiSsid() |
public DefaultExecutionEnvironment(com.google.common.collect.ImmutableMap<String,String> environment, Properties properties)
public String getHostname()
getHostname
in interface ExecutionEnvironment
public String getUsername()
getUsername
in interface ExecutionEnvironment
public int getAvailableCores()
getAvailableCores
in interface ExecutionEnvironment
public long getTotalMemory()
getTotalMemory
in interface ExecutionEnvironment
public Platform getPlatform()
getPlatform
in interface ExecutionEnvironment
public Network getLikelyActiveNetwork()
getLikelyActiveNetwork
in interface ExecutionEnvironment
public Optional<String> getWifiSsid()
getWifiSsid
in interface ExecutionEnvironment
public Optional<String> getenv(String key)
ExecutionEnvironment
getenv
in interface ExecutionEnvironment