Interface IRemoteProcessService
- All Superinterfaces:
IRemoteConnection.Service
A connection service for starting up processes on a remote.
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface IRemoteConnection.Service
IRemoteConnection.Service.Factory -
Method Summary
Modifier and TypeMethodDescriptiongetEnv()Returns an unmodifiable string map view of the remote environment.Returns the value of an environment variable.getProcessBuilder(String... command) Get a process builder for creating remote processesgetProcessBuilder(List<String> command) Get a process builder for creating remote processesGet the working directory.voidsetWorkingDirectory(String path) Set the working directory while the connection is open.Methods inherited from interface IRemoteConnection.Service
getRemoteConnection
-
Method Details
-
getEnv
-
getEnv
-
getProcessBuilder
Get a process builder for creating remote processes- Returns:
- process builder or null if connection is not open
-
getProcessBuilder
Get a process builder for creating remote processes- Returns:
- process builder or null if connection is not open
-
getWorkingDirectory
String getWorkingDirectory()Get the working directory. Relative paths will be resolved using this path. The remote connection does not need to be open to use this method, however a default directory path, rather than the actual working directory, may be returned in this case.- Returns:
- String representing the current working directory
-
setWorkingDirectory
Set the working directory while the connection is open. The working directory will revert to the default when the connection is closed then subsequently reopened. Relative paths will be resolved using this path. The path must be valid and absolute for any changes to be made.- Parameters:
path- String representing the current working directory- Since:
- 4.0
-