The endpoint utilizes an {@link ExecCommandExecutor} to execute a system command when it receives message exchanges. @see ExecBinding @see ExecCommandExecutor @see ExecCommand @see ExecResult
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
executable | path | producer | true | java.lang.String | Sets the executable to be executed. The executable must not be empty or
null .
|
||
args | parameter | producer | java.lang.String | The arguments may be one or many whitespace-separated tokens. | |||
binding | parameter | producer | org.apache.camel.component.exec.ExecBinding | A reference to a org.apache.commons.exec.ExecBinding in the Registry. | |||
commandExecutor | parameter | producer | org.apache.camel.component.exec.ExecCommandExecutor | A reference to a org.apache.commons.exec.ExecCommandExecutor in the Registry that customizes the command execution. The default command executor utilizes the commons-exec library, which adds a shutdown hook for every executed command. | |||
outFile | parameter | producer | java.lang.String | The name of a file, created by the executable, that should be considered as its output. If no outFile is set, the standard output (stdout) of the executable will be used instead. | |||
timeout | parameter | producer | long | The timeout, in milliseconds, after which the executable should be terminated. If execution has not completed within the timeout, the component will send a termination request. | |||
useStderrOnEmptyStdout | parameter | producer | boolean | A boolean indicating that when stdout is empty, this component will populate the Camel Message Body with stderr. This behavior is disabled (false) by default. | |||
workingDir | parameter | producer | java.lang.String | The directory in which the command should be executed. If null, the working directory of the current process will be used. | |||
exchangePattern | parameter | advanced | InOnly | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the default exchange pattern when creating an exchange | |
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |