public class JSchProcessBuilder extends AbstractRemoteProcessBuilder
ALLOCATE_PTY, FORWARD_X11, NONE
Constructor and Description |
---|
JSchProcessBuilder(IRemoteConnection connection) |
JSchProcessBuilder(IRemoteConnection connection,
java.util.List<java.lang.String> command) |
JSchProcessBuilder(IRemoteConnection connection,
java.lang.String... command) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.filesystem.IFileStore |
directory()
Returns 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.
|
com.jcraft.jsch.Channel |
getChannel() |
int |
getSupportedFlags()
Get the flags that are supported by this process builder.
|
void |
setPreamble(boolean enable) |
IRemoteProcess |
start(int flags)
Starts a new process using the attributes of this process builder.
|
command, command, command, directory, getRemoteConnection, redirectErrorStream, redirectErrorStream, start, toString
public JSchProcessBuilder(IRemoteConnection connection, java.util.List<java.lang.String> command)
public JSchProcessBuilder(IRemoteConnection connection, java.lang.String... command)
public JSchProcessBuilder(IRemoteConnection connection)
public org.eclipse.core.filesystem.IFileStore directory()
IRemoteProcessBuilder
directory
in interface IRemoteProcessBuilder
directory
in class AbstractRemoteProcessBuilder
public java.util.Map<java.lang.String,java.lang.String> environment()
IRemoteProcessBuilder
ProcessBuilder.environment()
.environment
in interface IRemoteProcessBuilder
environment
in class AbstractRemoteProcessBuilder
public int getSupportedFlags()
IRemoteProcessBuilder
getSupportedFlags
in interface IRemoteProcessBuilder
getSupportedFlags
in class AbstractRemoteProcessBuilder
public IRemoteProcess start(int flags) throws java.io.IOException
IRemoteProcessBuilder
IRemoteProcessBuilder.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)
start
in interface IRemoteProcessBuilder
start
in class AbstractRemoteProcessBuilder
flags
- bitwise-or of flags to use when starting processjava.io.IOException
public com.jcraft.jsch.Channel getChannel()
public void setPreamble(boolean enable)