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, toStringpublic 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()
IRemoteProcessBuilderdirectory in interface IRemoteProcessBuilderdirectory in class AbstractRemoteProcessBuilderpublic java.util.Map<java.lang.String,java.lang.String> environment()
IRemoteProcessBuilderProcessBuilder.environment().environment in interface IRemoteProcessBuilderenvironment in class AbstractRemoteProcessBuilderpublic int getSupportedFlags()
IRemoteProcessBuildergetSupportedFlags in interface IRemoteProcessBuildergetSupportedFlags in class AbstractRemoteProcessBuilderpublic IRemoteProcess start(int flags) throws java.io.IOException
IRemoteProcessBuilderIRemoteProcessBuilder.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 IRemoteProcessBuilderstart in class AbstractRemoteProcessBuilderflags - bitwise-or of flags to use when starting processjava.io.IOExceptionpublic com.jcraft.jsch.Channel getChannel()
public void setPreamble(boolean enable)