Class ProcessEnvironment
- java.lang.Object
-
- com.github.toolarium.system.command.dto.ProcessEnvironment
-
- All Implemented Interfaces:
IProcessEnvironment,java.io.Serializable
public class ProcessEnvironment extends java.lang.Object implements IProcessEnvironment, java.io.Serializable
Defines the process environment- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessEnvironment()Constructor for ProcessEnvironment
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearEnvironmentVariables()Clear the environment variablesbooleanequals(java.lang.Object obj)java.lang.StringgetArchitecture()Get the device architecturejava.lang.StringgetEnvironmentVariable(java.lang.String key)Get the environment variable valuejava.util.Map<java.lang.String,java.lang.String>getEnvironmentVariables()Get the environment variablesjava.lang.StringgetOS()Get the operating systemjava.lang.StringgetOSVersion()Get the operation system versionjava.lang.StringgetUser()Get the user.java.lang.StringgetWorkingPath()Get the working pathinthashCode()java.lang.StringsetEnvironmentVariable(java.lang.String key, java.lang.String value)Set the environment variable key / valuevoidsetUser(java.lang.String user)Set the uservoidsetWorkingPath(java.lang.String workingPath)Set the working pathjava.lang.StringtoString()
-
-
-
Method Detail
-
getUser
public java.lang.String getUser()
Description copied from interface:IProcessEnvironmentGet the user.- Specified by:
getUserin interfaceIProcessEnvironment- Returns:
- the user
- See Also:
IProcessEnvironment.getUser()
-
setUser
public void setUser(java.lang.String user)
Set the user- Parameters:
user- the user
-
getWorkingPath
public java.lang.String getWorkingPath()
Description copied from interface:IProcessEnvironmentGet the working path- Specified by:
getWorkingPathin interfaceIProcessEnvironment- Returns:
- the working path
- See Also:
IProcessEnvironment.getWorkingPath()
-
setWorkingPath
public void setWorkingPath(java.lang.String workingPath)
Set the working path- Parameters:
workingPath- the working oath
-
getEnvironmentVariables
public java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()
Description copied from interface:IProcessEnvironmentGet the environment variables- Specified by:
getEnvironmentVariablesin interfaceIProcessEnvironment- Returns:
- the environment variables
- See Also:
IProcessEnvironment.getEnvironmentVariables()
-
getEnvironmentVariable
public java.lang.String getEnvironmentVariable(java.lang.String key)
Description copied from interface:IProcessEnvironmentGet the environment variable value- Specified by:
getEnvironmentVariablein interfaceIProcessEnvironment- Parameters:
key- the key- Returns:
- the environment variable value
- See Also:
IProcessEnvironment.getEnvironmentVariable(java.lang.String)
-
setEnvironmentVariable
public java.lang.String setEnvironmentVariable(java.lang.String key, java.lang.String value)Set the environment variable key / value- Parameters:
key- the keyvalue- the value- Returns:
- the previous environment variable value
-
clearEnvironmentVariables
public void clearEnvironmentVariables()
Clear the environment variables
-
getOS
public java.lang.String getOS()
Description copied from interface:IProcessEnvironmentGet the operating system- Specified by:
getOSin interfaceIProcessEnvironment- Returns:
- the operating system
- See Also:
IProcessEnvironment.getOS()
-
getOSVersion
public java.lang.String getOSVersion()
Description copied from interface:IProcessEnvironmentGet the operation system version- Specified by:
getOSVersionin interfaceIProcessEnvironment- Returns:
- the operation system version
- See Also:
IProcessEnvironment.getOSVersion()
-
getArchitecture
public java.lang.String getArchitecture()
Description copied from interface:IProcessEnvironmentGet the device architecture- Specified by:
getArchitecturein interfaceIProcessEnvironment- Returns:
- the device architecture
- See Also:
IProcessEnvironment.getArchitecture()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-