public abstract class AbstractRemoteProcessBuilder extends java.lang.Object implements IRemoteProcessBuilder
ALLOCATE_PTY, APPEND_ENVIRONMENT, FORWARD_X11, NONE| Constructor and Description |
|---|
AbstractRemoteProcessBuilder(IRemoteConnection connection,
java.util.List<java.lang.String> command) |
AbstractRemoteProcessBuilder(IRemoteConnection connection,
java.lang.String... command) |
| 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.
|
abstract 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.
|
abstract int |
getSupportedFlags()
Get the flags that are supported by this process builder.
|
protected IRemoteProcess |
newRemoteProcess() |
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.
|
abstract IRemoteProcess |
start(int flags)
Starts a new process using the attributes of this process builder.
|
java.lang.String |
toString() |
public AbstractRemoteProcessBuilder(IRemoteConnection connection, java.util.List<java.lang.String> command)
public AbstractRemoteProcessBuilder(IRemoteConnection connection, java.lang.String... command)
public java.util.List<java.lang.String> command()
IRemoteProcessBuildercommand in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder command(java.util.List<java.lang.String> command)
IRemoteProcessBuildercommand in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder command(java.lang.String... command)
IRemoteProcessBuildercommand in interface IRemoteProcessBuilderpublic org.eclipse.core.filesystem.IFileStore directory()
IRemoteProcessBuilderdirectory in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder directory(org.eclipse.core.filesystem.IFileStore directory)
IRemoteProcessBuilderdirectory in interface IRemoteProcessBuilderpublic abstract java.util.Map<java.lang.String,java.lang.String> environment()
IRemoteProcessBuilderProcessBuilder.environment().environment in interface IRemoteProcessBuilderpublic abstract int getSupportedFlags()
IRemoteProcessBuildergetSupportedFlags in interface IRemoteProcessBuilderpublic boolean redirectErrorStream()
IRemoteProcessBuilderredirectErrorStream in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder redirectErrorStream(boolean redirectErrorStream)
IRemoteProcessBuilderredirectErrorStream in interface IRemoteProcessBuilderpublic IRemoteProcess start() throws java.io.IOException
IRemoteProcessBuilderstart in interface IRemoteProcessBuilderjava.io.IOExceptionpublic abstract 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 IRemoteProcessBuilderflags - bitwise-or of flags to use when starting processjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic IRemoteConnection getRemoteConnection()
IRemoteProcessBuildergetRemoteConnection in interface IRemoteProcessBuilderprotected IRemoteProcess newRemoteProcess()