generated from camel.apache.org/component
Update wiki Home page for exec
parent
08ef925a3a
commit
74529508d3
45
Home.md
45
Home.md
@ -1,21 +1,38 @@
|
||||
# Deploy the Project on CamelX Platform
|
||||
# Exec
|
||||
|
||||
Deploy on CamelX Platform in three steps
|
||||
Execute commands on the underlying operating system.
|
||||
|
||||
## Step 1: Create a release
|
||||
From the project space, click on **"Create a release"**
|
||||
## Metadata
|
||||
|
||||
The new version is automatically available in the list
|
||||
| Property | Value |
|
||||
|----------|-------|
|
||||
| Scheme | `exec` |
|
||||
| Support Level | Stable |
|
||||
| Labels | core |
|
||||
| Version | 4.10.2 |
|
||||
|
||||
## Step 2: Deploy
|
||||
Click on **"Deploy"**
|
||||
## Maven Dependency
|
||||
|
||||
- **Version:** Select the desired release
|
||||
- **Environment:** Choose `Development`, `Staging`, or `Production`
|
||||
- **Configuration:** Select the configuration source
|
||||
- **Resources:** Set CPU and Memory
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>org.apache.camel</groupId>
|
||||
<artifactId>camel-exec</artifactId>
|
||||
<version>4.10.2</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
## Step 3: Expose
|
||||
Enable **"Expose"**
|
||||
## Endpoint Properties
|
||||
|
||||
Choose an **API Gateway** (Internal, Public, etc.)
|
||||
| Name | Type | Required | Default | Description |
|
||||
|------|------|----------|---------|-------------|
|
||||
| `executable` | string | ✓ | | Sets the executable to be executed. The executable must not be empty or null. |
|
||||
| `args` | string | | | The arguments may be one or many whitespace-separated tokens. |
|
||||
| `binding` | object | | | A reference to a org.apache.commons.exec.ExecBinding in the Registry. |
|
||||
| `commandExecutor` | object | | | 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. |
|
||||
| `commandLogLevel` | object | | `DEBUG` | Logging level to be used for commands during execution. The default value is DEBUG. Possible values are TRACE, DEBUG, INFO, WARN, ERROR or OFF. (Values of ExecCommandLogLevelType enum) |
|
||||
| `exitValues` | string | | | The exit values of successful executions. If the process exits with another value, an exception is raised. Comma-separated list of exit values. And empty list (the default) sets no expected exit values and disables the check. |
|
||||
| `outFile` | 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` | duration | | | 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` | boolean | | `false` | 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` | string | | | The directory in which the command should be executed. If null, the working directory of the current process will be used. |
|
||||
| `lazyStartProducer` | boolean | | `false` | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user