98.3.2. 查询参数(8 参数):
Name | 描述 | 默认 | 类型 |
---|---|---|---|
args (重现) | 参数可以是一个或多个以空格分隔的令牌。 | 字符串 | |
绑定 (生产者) | 对 registry 中的 org.apache.commons.exec.ExecBinding 的引用。 | ExecBinding | |
commandExecutor (生成器) | 对自定义命令执行的 registry 中的 org.apache.commons.exec.ExecCommandExecutor 的引用。默认命令 executor 使用 commons-exec 库,它为每个执行命令添加一个关闭 hook。 | ExecCommandExecutor | |
outfile (producer) | 由可执行文件创建的文件名,它应被视为其输出。如果没有设置 outFile,则会改为使用可执行文件的标准输出(stdout)。 | 字符串 | |
超时 (生成器) | 应终止的超时时间(以毫秒为单位)。如果在超时时间内没有完成执行,则组件将发送终止请求。 | long | |
useStderrOnEmptyStdout (producer) | 布尔值表示 stdout 为空,该组件将使用 stderr 填充 Camel Message Body。默认禁用此行为(false)。 | false | 布尔值 |
workingDir (producer) | 应在其中执行 命令的目录。如果 null,将使用当前进程的工作目录。 | 字符串 | |
同步 (高级) | 设置同步处理是否应当严格使用,还是允许 Camel 使用异步处理(如果受支持)。 | false | 布尔值 |