public interface IRemoteProcessBuilder
ProcessBuilder
.Modifier and Type | Field and Description |
---|---|
static int |
ALLOCATE_PTY
Flag to request allocation of a pseudo-terminal for the process (RFC-4254
Sec.
|
static int |
APPEND_ENVIRONMENT
Flag to request that the supplied environment be apended to the remote environment; otherwise
it is replaced.
|
static int |
FORWARD_X11
Flag to request X11 forwarding (RFC-4254 Sec.
|
static int |
NONE |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
command()
Returns this process builder's operating system program and arguments.
|
IRemoteProcessBuilder |
command(java.util.List<java.lang.String> command)
Sets this process builder's operating system program and arguments.
|
IRemoteProcessBuilder |
command(java.lang.String... command)
Sets this process builder's operating system program and arguments.
|
org.eclipse.core.filesystem.IFileStore |
directory()
Returns this process builder's working directory.
|
IRemoteProcessBuilder |
directory(org.eclipse.core.filesystem.IFileStore directory)
Sets this process builder's working directory.
|
java.util.Map<java.lang.String,java.lang.String> |
environment()
Returns a string map view of this process builder's environment.
|
IRemoteConnection |
getRemoteConnection()
Get the connection that will be used by this process builder to create remote processes.
|
int |
getSupportedFlags()
Get the flags that are supported by this process builder.
|
boolean |
redirectErrorStream()
Tells whether this process builder merges standard error and standard
output.
|
IRemoteProcessBuilder |
redirectErrorStream(boolean redirectErrorStream)
Sets this process builder's redirectErrorStream property.
|
IRemoteProcess |
start()
Starts a new process using the attributes of this process builder.
|
IRemoteProcess |
start(int flags)
Starts a new process using the attributes of this process builder.
|
static final int NONE
static final int ALLOCATE_PTY
static final int FORWARD_X11
static final int APPEND_ENVIRONMENT
java.util.List<java.lang.String> command()
IRemoteProcessBuilder command(java.util.List<java.lang.String> command)
command
- IRemoteProcessBuilder command(java.lang.String... command)
command
- org.eclipse.core.filesystem.IFileStore directory()
IRemoteProcessBuilder directory(org.eclipse.core.filesystem.IFileStore directory)
directory
- java.util.Map<java.lang.String,java.lang.String> environment()
ProcessBuilder.environment()
.int getSupportedFlags()
boolean redirectErrorStream()
IRemoteProcessBuilder redirectErrorStream(boolean redirectErrorStream)
redirectErrorStream
- IRemoteProcess start() throws java.io.IOException
java.io.IOException
IRemoteProcess start(int flags) throws java.io.IOException
getSupportedFlags()
to find out the flags
supported by the service provider.
Current flags are: NONE - disable any flags ALLOCATE_PTY - allocate a pseudo-terminal for the process (RFC-4254 Sec. 6.2) FORWARD_X11 - enable X11 forwarding (RFC-4254 Sec. 6.3)
flags
- bitwise-or of flags to use when starting processjava.io.IOException
IRemoteConnection getRemoteConnection()