public class ProcessClientBuilder extends ClientBuilder
spawn tool, with no
password authentication. The command line parameters for the spawned process are constructed
from default parameters stored in directory and some specific parameters stored inside a
ClientBuilderParameters structure. A ProcessBuilderOptions instance is used
to store specific P2J process configuration.
The syntax used to start the native process is
spawn 0 <secure-port> <server-hostname> <server-alias> <uuid>.
| Modifier and Type | Field and Description |
|---|---|
private ProcessBuilderParameters |
params
The runtime values used by the process builder.
|
command, remote| Constructor and Description |
|---|
ProcessClientBuilder(ProcessBuilderParameters params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClientOptions()
Mark this P2J process to start in batch mode (add the
client:mode:batch=true
argument to the command). |
ProcessBuilderParameters |
getParams()
Returns the
ProcessBuilderParameters used for building the client. |
protected java.util.List<java.lang.String> |
getSpawnArguments()
Get the spawn arguments.
|
getCommand, initNativeSecureConnection, localStart, remoteStart, remoteStart, removeCommandprivate final ProcessBuilderParameters params
public ProcessClientBuilder(ProcessBuilderParameters params)
params - The specific parameters for this client.public ProcessBuilderParameters getParams()
ProcessBuilderParameters used for building the client.getParams in class ClientBuilderprotected void addClientOptions()
client:mode:batch=true
argument to the command).addClientOptions in class ClientBuilderprotected java.util.List<java.lang.String> getSpawnArguments()
spawn tool using the
spawn 0 <secure-port> <server-hostname> <server-alias> <uuid> syntax.getSpawnArguments in class ClientBuilder