public interface Process extends NativeIntegration
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEnvironmentVariable(java.lang.String name)
Get the value of an environment variable.
|
int |
getProcessId()
Returns the process identifier.
|
java.io.File |
getWorkingDirectory()
Returns the process' current working directory.
|
void |
setEnvironmentVariable(java.lang.String name,
java.lang.String value)
Sets the value of an environment variable.
|
void |
setWorkingDirectory(java.io.File directory)
Sets the process' working directory.
|
int getProcessId() throws NativeException
NativeException
- On failure.java.io.File getWorkingDirectory() throws NativeException
NativeException
- On failure.void setWorkingDirectory(java.io.File directory) throws NativeException
NativeException
- On failure.java.lang.String getEnvironmentVariable(java.lang.String name) throws NativeException
NativeException
- On failure.void setEnvironmentVariable(java.lang.String name, java.lang.String value) throws NativeException
value
- the new value. Use null or an empty string to remove the environment variable. Note that on some
platforms it is not possible to remove the environment variable safely. On such platforms, the value is set to an
empty string instead.NativeException
- On failure.