public interface ExecBinding
ExecCommandExecutor to an Exchange. The input
of the executor is an ExecCommand and the output is an ExecResult.| Modifier and Type | Field and Description |
|---|---|
static String |
EXEC_COMMAND_ARGS
The header value overrides the existing command arguments in the
ExecEndpoint URI. |
static String |
EXEC_COMMAND_EXECUTABLE
The header value overrides the executable of the command, configured in the exec endpoint URI.
|
static String |
EXEC_COMMAND_LOG_LEVEL
The value of this header define logging level to be used for commands during execution.
|
static String |
EXEC_COMMAND_OUT_FILE
Specifies the file name of a file, created by the executable, that should be considered as output of the
executable, e.g.
|
static String |
EXEC_COMMAND_TIMEOUT
Specifies the amount of time, in milliseconds, after which the process of the executable should be terminated.
|
static String |
EXEC_COMMAND_WORKING_DIR
Sets the working directory of the
EXEC_COMMAND_EXECUTABLE. |
static String |
EXEC_EXIT_VALUE
The value of this header is the exit value that is returned, after the execution.
|
static String |
EXEC_STDERR
The value of this header is a
InputStream with the standard error stream of the executable. |
static String |
EXEC_USE_STDERR_ON_EMPTY_STDOUT
The value of this header is a boolean which indicates whether or not to fallback and use stderr when stdout is
empty.
|
| Modifier and Type | Method and Description |
|---|---|
ExecCommand |
readInput(org.apache.camel.Exchange exchange,
ExecEndpoint endpoint)
|
void |
writeOutput(org.apache.camel.Exchange exchange,
ExecResult result)
Populates the exchange form the
ExecResult. |
static final String EXEC_COMMAND_EXECUTABLE
ExecEndpoint URI; exec:C:/Program Files/jdk/java.exe , C:/Program
Files/jdk/java.exe is the executable.static final String EXEC_COMMAND_ARGS
ExecEndpoint URI. The arguments may be a
List. In this case no parsing of the arguments is necessary.#EXEC_COMMAND_EXECUTABLE},
Constant Field Valuesstatic final String EXEC_COMMAND_OUT_FILE
static final String EXEC_COMMAND_WORKING_DIR
EXEC_COMMAND_EXECUTABLE. The header value overrides any existing
command in the endpoint URI. If this is not configured, the working directory of the current process will be
used.static final String EXEC_COMMAND_TIMEOUT
Long.MAX_VALUE.static final String EXEC_STDERR
InputStream with the standard error stream of the executable.static final String EXEC_EXIT_VALUE
static final String EXEC_USE_STDERR_ON_EMPTY_STDOUT
static final String EXEC_COMMAND_LOG_LEVEL
ExecCommand readInput(org.apache.camel.Exchange exchange, ExecEndpoint endpoint)
exchange - a Camel Exchangeendpoint - an ExecEndpoint instanceExecCommand objectExecCommandExecutorvoid writeOutput(org.apache.camel.Exchange exchange,
ExecResult result)
ExecResult.exchange - a Camel Exchange, in which to write the resultresult - the result of a command executionExecCommandExecutorApache Camel