Interface IProcessEnvironment
-
- All Known Implementing Classes:
ProcessEnvironment
public interface IProcessEnvironment
The process environment. It contains all environment information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getArchitecture()
Get the device architecturejava.lang.String
getEnvironmentVariable(java.lang.String key)
Get the environment variable valuejava.util.Map<java.lang.String,java.lang.String>
getEnvironmentVariables()
Get the environment variablesjava.lang.String
getOS()
Get the operating systemjava.lang.String
getOSVersion()
Get the operation system versionjava.lang.String
getUser()
Get the user.java.lang.String
getWorkingPath()
Get the working pathboolean
isSudoUser()
True if the user is set to run as a sudo user.
-
-
-
Method Detail
-
getUser
java.lang.String getUser()
Get the user.- Returns:
- the user
-
isSudoUser
boolean isSudoUser()
True if the user is set to run as a sudo user.- Returns:
- true if the user is set to run as a sudo user.
-
getWorkingPath
java.lang.String getWorkingPath()
Get the working path- Returns:
- the working path
-
getEnvironmentVariables
java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
Get the environment variables- Returns:
- the environment variables
-
getEnvironmentVariable
java.lang.String getEnvironmentVariable(java.lang.String key)
Get the environment variable value- Parameters:
key
- the key- Returns:
- the environment variable value
-
getOS
java.lang.String getOS()
Get the operating system- Returns:
- the operating system
-
getOSVersion
java.lang.String getOSVersion()
Get the operation system version- Returns:
- the operation system version
-
getArchitecture
java.lang.String getArchitecture()
Get the device architecture- Returns:
- the device architecture
-
-