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 | Type | Required | Deprecated | Default Value | Enum Values | Description |
---|---|---|---|---|---|---|---|
executable | path | java.lang.String | true | false | Sets the executable to be executed. The executable must not be empty or
null .
@param executable Sets the executable to be executed.
|
||
args | parameter | java.lang.String | false | Sets the arguments of the executable application
@param args Returns null value if no arguments are
configured in the endpoint URI
@see #getArgs()
@see ExecBinding#EXEC_COMMAND_ARGS |
|||
workingDir | parameter | java.lang.String | false | Sets the working directory of the executable.
@param dir the working directory of the executable. null
values indicates that the current working directory will be
used. |
|||
timeout | parameter | long | false | Sets the timeout.
@param timeout The timeout must be a positive long
@see ExecBinding#EXEC_COMMAND_TIMEOUT |
|||
outFile | parameter | java.lang.String | false | @param outFile a not-empty file path @see ExecBinding#EXEC_COMMAND_OUT_FILE | |||
commandExecutor | parameter | org.apache.camel.component.exec.ExecCommandExecutor | false | Sets a custom executor to execute commands. @param commandExecutor a not-null instance of {@link ExecCommandExecutor} | |||
binding | parameter | org.apache.camel.component.exec.ExecBinding | false | ||||
useStderrOnEmptyStdout | parameter | boolean | false | ||||
exchangePattern | parameter | org.apache.camel.ExchangePattern | false | InOnly | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the default exchange pattern when creating an exchange | |
synchronous | parameter | boolean | false | false | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |