public abstract class AbstractRemoteProcessBuilder extends Object implements IRemoteProcessBuilder
ALLOCATE_PTY, FORWARD_X11, NONE| Constructor and Description |
|---|
AbstractRemoteProcessBuilder(IRemoteConnection conn,
List<String> command) |
AbstractRemoteProcessBuilder(IRemoteConnection conn,
String... command) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
command()
Returns this process builder's operating system program and arguments.
|
IRemoteProcessBuilder |
command(List<String> command)
Sets this process builder's operating system program and arguments.
|
IRemoteProcessBuilder |
command(String... command)
Sets this process builder's operating system program and arguments.
|
IRemoteConnection |
connection()
Returns this process builder's connection.
|
IRemoteProcessBuilder |
connection(IRemoteConnection conn)
Sets this process builder's connection.
|
IFileStore |
directory()
Returns this process builder's working directory.
|
IRemoteProcessBuilder |
directory(IFileStore directory)
Sets this process builder's working directory.
|
abstract Map<String,String> |
environment()
Returns a string map view of this process builder's environment.
|
abstract 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.
|
abstract IRemoteProcess |
start(int flags)
Starts a new process using the attributes of this process builder.
|
String |
toString() |
public AbstractRemoteProcessBuilder(IRemoteConnection conn, List<String> command)
public AbstractRemoteProcessBuilder(IRemoteConnection conn, String... command)
public List<String> command()
IRemoteProcessBuildercommand in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder command(List<String> command)
IRemoteProcessBuildercommand in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder command(String... command)
IRemoteProcessBuildercommand in interface IRemoteProcessBuilderpublic IRemoteConnection connection()
IRemoteProcessBuilderconnection in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder connection(IRemoteConnection conn)
IRemoteProcessBuilderconnection in interface IRemoteProcessBuilderpublic IFileStore directory()
IRemoteProcessBuilderdirectory in interface IRemoteProcessBuilderpublic IRemoteProcessBuilder directory(IFileStore directory)
IRemoteProcessBuilderdirectory in interface IRemoteProcessBuilderpublic abstract Map<String,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 IOException
IRemoteProcessBuilderstart in interface IRemoteProcessBuilderIOExceptionpublic abstract IRemoteProcess start(int flags) throws 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 processIOExceptionCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.