You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2024/02/21 13:44:30 UTC
(camel) branch main updated (9086a1c5bf4 -> 88e58282263)
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
from 9086a1c5bf4 CAMEL-20410: documentation fixes for camel-ref
new e78e42cba86 CAMEL-20410: documentation fixes for camel-metrics
new 80b5a2f8d95 CAMEL-20410: documentation fixes for camel-micrometer
new d102bad3250 CAMEL-20410: documentation fixes for camel-micrometer-prometheus
new b72c6505350 CAMEL-20410: documentation fixes for camel-microprofile-config
new 5dcc60228cc CAMEL-20410: documentation fixes for camel-microprofile-fault-tolerance
new 193b55c8231 CAMEL-20410: documentation fixes for camel-mina
new e35e95c4486 CAMEL-20410: documentation fixes for camel-minio
new a4e5e4d9216 CAMEL-20410: documentation fixes for camel-mllp
new ff821d38350 CAMEL-20410: documentation fixes for camel-mongodb-gridfs
new 1e9878d9b17 CAMEL-20410: documentation fixes for camel-mustache
new df565132f90 CAMEL-20410: documentation fixes for camel-mvel
new 88e58282263 CAMEL-20410: documentation fixes for camel-mybatis
The 12 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/main/docs/metrics-component.adoc | 75 ++++++++++++----------
.../src/main/docs/micrometer-prometheus.adoc | 3 +-
.../src/main/docs/micrometer-component.adoc | 60 ++++++++---------
.../src/main/docs/microprofile-config.adoc | 9 +--
.../main/docs/microprofile-fault-tolerance.adoc | 2 +-
.../camel-mina/src/main/docs/mina-component.adoc | 20 +++---
.../camel-minio/src/main/docs/minio-component.adoc | 49 +++++++-------
.../camel-mllp/src/main/docs/mllp-component.adoc | 38 +++++------
.../src/main/docs/mongodb-gridfs-component.adoc | 12 ++--
.../src/main/docs/mustache-component.adoc | 12 ++--
.../camel-mvel/src/main/docs/mvel-component.adoc | 9 ++-
.../camel-mvel/src/main/docs/mvel-language.adoc | 13 ++--
.../src/main/docs/mybatis-bean-component.adoc | 6 +-
.../src/main/docs/mybatis-component.adoc | 20 +++---
14 files changed, 168 insertions(+), 160 deletions(-)
(camel) 01/12: CAMEL-20410: documentation fixes for camel-metrics
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e78e42cba86802b3d566d8881bcbdbb846161d66
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 13:38:22 2024 +0100
CAMEL-20410: documentation fixes for camel-metrics
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/metrics-component.adoc | 75 ++++++++++++----------
1 file changed, 41 insertions(+), 34 deletions(-)
diff --git a/components/camel-metrics/src/main/docs/metrics-component.adoc b/components/camel-metrics/src/main/docs/metrics-component.adoc
index f3a6079a4f9..4010b2e61c8 100644
--- a/components/camel-metrics/src/main/docs/metrics-component.adoc
+++ b/components/camel-metrics/src/main/docs/metrics-component.adoc
@@ -14,12 +14,12 @@
*{component-header}*
-The Metrics component allows to collect various metrics directly
+The Metrics component allows collecting various metrics directly
from Camel routes. Supported metric types
are xref:#MetricsComponent-counter[counter], xref:#MetricsComponent-histogram[histogram],
-xref:#MetricsComponent-meter[meter], xref:#MetricsComponent-timer[timer] and xref:#MetricsComponent-gauge[gauge]. http://metrics.dropwizard.io[Metrics] provides
-simple way to measure behaviour of application. Configurable
-reporting backend is enabling different integration options for
+xref:#MetricsComponent-meter[meter], xref:#MetricsComponent-timer[timer] and xref:#MetricsComponent-gauge[gauge].
+http://metrics.dropwizard.io[Metrics] provides a simple way to measure the behaviour of applications.
+The configurable reporting backend enables different integration options for
collecting and visualizing statistics. The component also provides
a `MetricsRoutePolicyFactory` which allows to expose route statistics
using Dropwizard Metrics, see bottom of page for details.
@@ -63,13 +63,18 @@ include::partial$component-endpoint-headers.adoc[]
== Metric Registry
Camel Metrics component uses by default a `MetricRegistry` instance with
-a `Slf4jReporter` that has a 60 second reporting interval.
+a `Slf4jReporter` that has a 60-second reporting interval.
This default registry can be replaced with a custom one by providing
a `MetricRegistry` bean. If multiple `MetricRegistry` beans exist in the
application, the one with name `metricRegistry` is used.
-For example using Spring Java Configuration:
+For example:
+[tabs]
+====
+
+Java (Spring)::
++
[source,java]
----
@Configuration
@@ -94,8 +99,8 @@ public static class MyConfig extends SingleRouteCamelConfiguration {
}
----
-Or using CDI:
-
+Java (CDI)::
++
[source,java]
----
class MyBean extends RouteBuilder {
@@ -118,13 +123,15 @@ class MyBean extends RouteBuilder {
}
----
+====
+
== Usage
Each metric has type and name. Supported types are
xref:#MetricsComponent-counter[counter],
xref:#MetricsComponent-histogram[histogram], xref:#MetricsComponent-meter[meter],
xref:#MetricsComponent-timer[timer] and xref:#MetricsComponent-gauge[gauge].
-Metric name is simple string. If metric type is not provided then type meter is used by default.
+Metric name is simple string. If a metric type is not provided, then type meter is used by default.
=== Headers
@@ -164,7 +171,7 @@ metrics:counter:metricname[?options]
|decrement |- |Long value to subtract from the counter
|=====================================================
-If neither `increment` or `decrement` is defined then counter value will
+If neither `increment` or `decrement` is defined then the value of the counter will
be incremented by one. If `increment` and `decrement` are both defined
only increment operation is called.
@@ -400,7 +407,7 @@ metrics:gauge:metricname[?options]
|subject |- |Any object to be observed by the gauge
|=====================================================
-If `subject` is not defined it's simply ignored, i.e. the gauge is not registered.
+If `subject` is not defined it's simply ignored, i.e., the gauge is not registered.
[source,java]
----
@@ -433,19 +440,19 @@ from("direct:in")
== MetricsRoutePolicyFactory
-This factory allows to add a RoutePolicy for each
-route which exposes route utilization statistics using Dropwizard metrics.
+This factory allows adding a `RoutePolicy` for each
+route that exposes route utilization statistics using Dropwizard metrics.
This factory can be used in Java and XML as the examples below
demonstrates.
[NOTE]
====
-Instead of using the MetricsRoutePolicyFactory you can define a
+Instead of using the `MetricsRoutePolicyFactory` you can define a
MetricsRoutePolicy per route you want to instrument, in case you only
want to instrument a few selected routes.
====
-From Java you just add the factory to the `CamelContext` as shown below:
+From Java, you add the factory to the `CamelContext` as shown below:
[source,java]
----
@@ -466,22 +473,22 @@ following options:
[width="100%",options="header"]
|=======================================================================
|Name |Default |Description
-|useJmx |false |Whether to report fine grained statistics to JMX by
+|useJmx |false |Whether to report fine-grained statistics to JMX by
using the `com.codahale.metrics.JmxReporter`. +
Notice that if JMX is enabled on CamelContext
then a `MetricsRegistryService` mbean is enlisted under the services
type in the JMX tree. That mbean has a single operation to output the
statistics using json. Setting `useJmx` to true is only needed if you
-want fine grained mbeans per statistics type.
+want fine-grained mbeans per statistics type.
|jmxDomain |org.apache.camel.metrics |The JMX domain name
|prettyPrint |false |Whether to use pretty print when outputting
statistics in json format
-|metricsRegistry | |Allow to use a shared
-`com.codahale.metrics.MetricRegistry`. If none is provided then Camel
-will create a shared instance used by the this CamelContext.
+|metricsRegistry | |Allow using a shared
+`com.codahale.metrics.MetricRegistry`. If none is provided, then Camel
+will create a shared instance used by the CamelContext.
|rateUnit |TimeUnit.SECONDS |The unit to use for rate in the metrics
reporter or when dumping the statistics as json.
@@ -490,7 +497,7 @@ reporter or when dumping the statistics as json.
the metrics reporter or when dumping the statistics as json.
|namePattern |`##name##.##routeId##.##type##` |*Camel 2.17:* The name
-pattern to use. Uses dot as separators, but you can change that. The
+pattern to use. Use dot as separators, but you can change that. The
values `##name##`, `##routeId##`, and `##type##` will be replaced with actual
value. Where `###name###` is the name of the CamelContext. `###routeId###`
is the name of the route. And `###type###` is the value of responses.
@@ -514,13 +521,13 @@ if (registryService != null) {
== MetricsMessageHistoryFactory
-This factory allows to use metrics to
+This factory allows using metrics to
capture Message History performance
statistics while routing messages. It works by using a metrics Timer for
each node in all the routes. This factory can be used in Java and XML as
the examples below demonstrates.
-From Java you just set the factory to the `CamelContext` as shown below:
+From Java, you set the factory to the `CamelContext` as shown below:
[source,java]
----
@@ -535,27 +542,27 @@ And from XML DSL you define a <bean> as follows:
<bean id="metricsMessageHistoryFactory" class="org.apache.camel.component.metrics.messagehistory.MetricsMessageHistoryFactory"/>
----
-The following options is supported on the factory:
+The following options are supported on the factory:
[width="100%",options="header"]
|=======================================================================
|Name |Default |Description
-|useJmx |false |Whether to report fine grained statistics to JMX by
+|useJmx |false |Whether to report fine-grained statistics to JMX by
using the `com.codahale.metrics.JmxReporter`. +
Notice that if JMX is enabled on CamelContext
then a `MetricsRegistryService` mbean is enlisted under the services
type in the JMX tree. That mbean has a single operation to output the
statistics using json. Setting `useJmx` to true is only needed if you
-want fine grained mbeans per statistics type.
+want fine-grained mbeans per statistics type.
|jmxDomain |org.apache.camel.metrics |The JMX domain name
|prettyPrint |false |Whether to use pretty print when outputting
statistics in json format
-|metricsRegistry | |Allow to use a shared
-`com.codahale.metrics.MetricRegistry`. If none is provided then Camel
-will create a shared instance used by the this CamelContext.
+|metricsRegistry | |Allow using a shared
+`com.codahale.metrics.MetricRegistry`. If none is provided, then Camel
+will create a shared instance used by the CamelContext.
|rateUnit |TimeUnit.SECONDS |The unit to use for rate in the metrics
reporter or when dumping the statistics as json.
@@ -564,17 +571,17 @@ reporter or when dumping the statistics as json.
the metrics reporter or when dumping the statistics as json.
|namePattern |`##name##.##routeId##.###id###.##type##` |The name pattern
-to use. Uses dot as separators, but you can change that. The values
+to use. Use dot as separators, but you can change that. The values
`##name##`, `##routeId##`, `##type##`, and `###id###` will be replaced with
actual value. Where `###name###` is the name of the CamelContext.
`###routeId###` is the name of the route. The `###id###` pattern represents
the node id. And `###type###` is the value of history.
|=======================================================================
-At runtime the metrics can be accessed from Java API or JMX which allows
+At runtime the metrics can be accessed from Java API or JMX, which allows
to gather the data as json output.
-From Java code you can do get the service from the CamelContext as
+From Java code, you can get the service from the CamelContext as
shown:
[source,java]
@@ -588,8 +595,8 @@ with `name=MetricsMessageHistoryService`.
== InstrumentedThreadPoolFactory
-This factory allows you to gather performance information about Camel Thread Pools by injecting a InstrumentedThreadPoolFactory
-which collects information from inside of Camel.
+This factory allows you to gather performance information about Camel Thread Pools by injecting a `InstrumentedThreadPoolFactory`
+which collects information from the inside of Camel.
See more details at Advanced configuration of CamelContext using Spring
(camel) 11/12: CAMEL-20410: documentation fixes for camel-mvel
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit df565132f9014f861750cec30e68990812082386
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 14:06:13 2024 +0100
CAMEL-20410: documentation fixes for camel-mvel
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
components/camel-mvel/src/main/docs/mvel-component.adoc | 9 ++++-----
components/camel-mvel/src/main/docs/mvel-language.adoc | 13 ++++++-------
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/components/camel-mvel/src/main/docs/mvel-component.adoc b/components/camel-mvel/src/main/docs/mvel-component.adoc
index 239b603b457..5cc6bf21c1a 100644
--- a/components/camel-mvel/src/main/docs/mvel-component.adoc
+++ b/components/camel-mvel/src/main/docs/mvel-component.adoc
@@ -38,8 +38,7 @@ mvel:templateName[?options]
---------------------------
Where *templateName* is the classpath-local URI of the template to
-invoke; or the complete URL of the remote template (eg:
-\file://folder/myfile.mvel).
+invoke; or the complete URL of the remote template (e.g.: `\file://folder/myfile.mvel`).
// component-configure options: START
@@ -80,14 +79,14 @@ Camel will provide exchange information in the MVEL context (just a
The mvel template resource is, by default, hot reloadable for both file
and classpath resources (expanded jar). If you set `contentCache=true`,
Camel will only load the resource once, and thus hot reloading is not
-possible. This scenario can be used in production, when the resource
+possible. This scenario can be used in production when the resource
never changes.
== Dynamic templates
Camel provides two headers by which you can define a different resource
location for a template, or the template content itself. If any of these
-headers is set then Camel uses this over the endpoint configured
+headers is set, then Camel uses this over the endpoint configured
resource. This allows you to provide a dynamic template at runtime.
// component headers: START
@@ -117,7 +116,7 @@ from("direct:in").
to("mvel:dummy?allowTemplateFromHeader=true");
-------------------------------------------------------------------------
-To specify a template directly as a header the component should use
+To specify a template directly as a header, the component should use
dynamically via a header, so for example:
[source,java]
diff --git a/components/camel-mvel/src/main/docs/mvel-language.adoc b/components/camel-mvel/src/main/docs/mvel-language.adoc
index cf5007f1d42..94ea93e9476 100644
--- a/components/camel-mvel/src/main/docs/mvel-language.adoc
+++ b/components/camel-mvel/src/main/docs/mvel-language.adoc
@@ -18,7 +18,7 @@ MVEL is powerful for templates, but can also be used for
xref:manual::expression.adoc[Expression] or xref:manual::predicate.adoc[Predicate]
For example, you can use MVEL in a xref:manual::predicate.adoc[Predicate]
-with the xref:eips:choice-eip.adoc[Content Based Router] EIP.
+with the xref:eips:choice-eip.adoc[Content-Based Router] EIP.
You can use MVEL dot notation to invoke operations. If you for instance
have a body that contains a POJO that has a `getFamilyName` method then
@@ -92,10 +92,10 @@ And in XML:
== Loading script from external resource
-You can externalize the script and have Camel load it from a resource
+You can externalize the script and have Apache Camel load it from a resource
such as `"classpath:"`, `"file:"`, or `"http:"`.
This is done using the following syntax: `"resource:scheme:location"`,
-e.g. to refer to a file on the classpath you can do:
+e.g., to refer to a file on the classpath you can do:
[source,java]
----
@@ -104,12 +104,11 @@ e.g. to refer to a file on the classpath you can do:
== Dependencies
-To use MVEL in your camel routes you need to add the dependency on
+To use MVEL in your Camel routes, you need to add the dependency on
*camel-mvel* which implements the MVEL language.
-If you use maven you could just add the following to your pom.xml,
-substituting the version number for the latest & greatest release (see
-the download page for the latest versions).
+If you use Maven, you could add the following to your `pom.xml`,
+substituting the version number for the latest & greatest release.
[source,xml]
----
(camel) 08/12: CAMEL-20410: documentation fixes for camel-mllp
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit a4e5e4d9216beb128cf3596f01e6158e412227d7
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 14:01:23 2024 +0100
CAMEL-20410: documentation fixes for camel-mllp
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-mllp/src/main/docs/mllp-component.adoc | 38 +++++++++++-----------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/components/camel-mllp/src/main/docs/mllp-component.adoc b/components/camel-mllp/src/main/docs/mllp-component.adoc
index c831f67319a..676e8660f33 100644
--- a/components/camel-mllp/src/main/docs/mllp-component.adoc
+++ b/components/camel-mllp/src/main/docs/mllp-component.adoc
@@ -19,7 +19,7 @@ MLLP protocol and provide the functionality required by Healthcare
providers to communicate with other systems using the MLLP protocol.
The MLLP component provides a simple configuration URI, automated HL7
-acknowledgment generation and automatic acknowledgment interrogation.
+acknowledgment generation, and automatic acknowledgment interrogation.
The MLLP protocol does not typically use a large number of concurrent
TCP connections - a single active TCP connection is the normal case.
@@ -71,11 +71,11 @@ The MLLP Consumer supports receiving MLLP-framed messages and sending
HL7 Acknowledgements. The MLLP Consumer can automatically generate the
HL7 Acknowledgement (HL7 Application Acknowledgements only - AA, AE and
AR), or the acknowledgement can be specified using
-the CamelMllpAcknowledgement exchange property. Additionally, the type
+the `CamelMllpAcknowledgement` exchange property. Additionally, the type
of acknowledgement that will be generated can be controlled by setting
-the CamelMllpAcknowledgementType exchange property. The MLLP Consumer
+the `CamelMllpAcknowledgementType` exchange property. The MLLP Consumer
can read messages without sending any HL7 Acknowledgement if the
-automatic acknowledgement is disabled and exchange pattern is InOnly.
+automatic acknowledgement is disabled and the exchange pattern is `InOnly`.
=== Exchange Properties
@@ -85,23 +85,23 @@ by these properties on the Camel exchange:
[width="100%",cols="<34%,<33%,<33%",]
|====================================
|*Key* |*Type* |*Description*
-|CamelMllpAcknowledgement | byte[] | If present, this property will we sent to client as the MLLP Acknowledgement
-|CamelMllpAcknowledgementString | String | If present and CamelMllpAcknowledgement is not present, this property will we sent to client as the MLLP Acknowledgement
-|CamelMllpAcknowledgementMsaText | String | If neither CamelMllpAcknowledgement or CamelMllpAcknowledgementString are present and autoAck is true, this property can be used to specify the contents of MSA-3 in the generated HL7 acknowledgement
-|CamelMllpAcknowledgementType | String | If neither CamelMllpAcknowledgement or CamelMllpAcknowledgementString are present and autoAck is true, this property can be used to specify the HL7 acknowledgement type (i.e. AA, AE, AR)
-|CamelMllpAutoAcknowledge | Boolean | Overrides the autoAck query parameter
-
-|CamelMllpCloseConnectionBeforeSend | Boolean | If true, the Socket will be closed before sending data
-|CamelMllpResetConnectionBeforeSend | Boolean | If true, the Socket will be reset before sending data
-|CamelMllpCloseConnectionAfterSend | Boolean | If true, the Socket will be closed immediately after sending data
-|CamelMllpResetConnectionAfterSend | Boolean | If true, the Socket will be reset immediately after sending any data
+|`CamelMllpAcknowledgement` | byte[] | If present, this property will be sent to the client as the MLLP Acknowledgement
+|`CamelMllpAcknowledgementString` | String | If present and `CamelMllpAcknowledgement` is not present, this property will we sent to the client as the MLLP Acknowledgement
+|`CamelMllpAcknowledgementMsaText` | String | If neither `CamelMllpAcknowledgement` or `CamelMllpAcknowledgementString` are present and autoAck is true, this property can be used to specify the contents of MSA-3 in the generated HL7 acknowledgement
+|`CamelMllpAcknowledgementType` | String | If neither `CamelMllpAcknowledgement` or `CamelMllpAcknowledgementString` are present and autoAck is true, this property can be used to specify the HL7 acknowledgement type (i.e. AA, AE, AR)
+|`CamelMllpAutoAcknowledge` | Boolean | Overrides the autoAck query parameter
+
+|`CamelMllpCloseConnectionBeforeSend` | Boolean | If true, the Socket will be closed before sending data
+|`CamelMllpResetConnectionBeforeSend` | Boolean | If true, the Socket will be reset before sending data
+|`CamelMllpCloseConnectionAfterSend` | Boolean | If true, the Socket will be closed immediately after sending data
+|`CamelMllpResetConnectionAfterSend` | Boolean | If true, the Socket will be reset immediately after sending any data
|====================================
== MLLP Producer
The MLLP Producer supports sending MLLP-framed messages and receiving
HL7 Acknowledgements. The MLLP Producer interrogates the HL7
-Acknowledgments and raises exceptions if a negative acknowledgement is
+Acknowledgements and raises exceptions if a negative acknowledgement is
received. The received acknowledgement is interrogated and an exception
is raised in the event of a negative acknowledgement. The MLLP Producer
can ignore acknowledgements when configured with InOnly exchange pattern.
@@ -113,10 +113,10 @@ The state of the TCP Socket can be controlled by these properties on the Camel e
[width="100%",cols="<34%,<33%,<33%",]
|====================================
|*Key* |*Type* |*Description*
-|CamelMllpCloseConnectionBeforeSend | Boolean | If true, the Socket will be closed before sending data
-|CamelMllpResetConnectionBeforeSend | Boolean | If true, the Socket will be reset before sending data
-|CamelMllpCloseConnectionAfterSend | Boolean | If true, the Socket will be closed immediately after sending data
-|CamelMllpResetConnectionAfterSend | Boolean | If true, the Socket will be reset immediately after sending any data
+|`CamelMllpCloseConnectionBeforeSend` | Boolean | If true, the Socket will be closed before sending data
+|`CamelMllpResetConnectionBeforeSend` | Boolean | If true, the Socket will be reset before sending data
+|`CamelMllpCloseConnectionAfterSend` | Boolean | If true, the Socket will be closed immediately after sending data
+|`CamelMllpResetConnectionAfterSend` | Boolean | If true, the Socket will be reset immediately after sending any data
|====================================
(camel) 09/12: CAMEL-20410: documentation fixes for camel-mongodb-gridfs
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit ff821d38350bf295871d95b507cb8dcf6d64977c
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 14:03:26 2024 +0100
CAMEL-20410: documentation fixes for camel-mongodb-gridfs
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/mongodb-gridfs-component.adoc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc b/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc
index ed2ea2435f5..a23694fa50c 100644
--- a/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc
+++ b/components/camel-mongodb-gridfs/src/main/docs/mongodb-gridfs-component.adoc
@@ -49,7 +49,7 @@ include::partial$component-endpoint-options.adoc[]
include::partial$component-endpoint-headers.adoc[]
// component headers: END
-== Configuration of database in Spring XML
+== Configuration of a database in Spring XML
The following Spring XML creates a bean defining the connection to a
MongoDB instance.
@@ -87,7 +87,7 @@ xref:mongodb-gridfs-component.adoc[*findOne*] on a collection.
=== count
-Returns the total number of file in the collection, returning an Integer
+Returns the total number of files in the collection, returning an Integer
as the OUT message body.
[source,java]
@@ -109,7 +109,7 @@ Integer count = template.requestBodyAndHeaders("direct:count", query, headers);
=== listAll
-Returns an Reader that lists all the filenames and their IDs in a tab
+Returns a Reader that lists all the filenames and their IDs in a tab
separated stream.
----------------------------------------------------------------------------------
@@ -124,7 +124,7 @@ filename2.txt 2897651254
Finds a file in the GridFS system and sets the body to an InputStream of
the content. Also provides the metadata has headers. It uses
-Exchange.FILE_NAME from the incoming headers to determine the file to find.
+`Exchange.FILE_NAME` from the incoming headers to determine the file to find.
[source,java]
-------------------------------------------------------------------------------------------------
@@ -136,8 +136,8 @@ InputStream result = template.requestBodyAndHeaders("direct:findOne", "irrelevan
=== create
-Creates a new file in the GridFs database. It uses the
-Exchange.FILE_NAME from the incoming headers for the name and the body
+Create a new file in the GridFs database. It uses the
+`Exchange.FILE_NAME` from the incoming headers for the name and the body
contents (as an InputStream) as the content.
[source,java]
(camel) 07/12: CAMEL-20410: documentation fixes for camel-minio
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e35e95c44869b14447549b7e2df73e6db8196482
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 13:56:26 2024 +0100
CAMEL-20410: documentation fixes for camel-minio
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-minio/src/main/docs/minio-component.adoc | 49 +++++++++++-----------
1 file changed, 25 insertions(+), 24 deletions(-)
diff --git a/components/camel-minio/src/main/docs/minio-component.adoc b/components/camel-minio/src/main/docs/minio-component.adoc
index 7d961b24535..6e33175e4cc 100644
--- a/components/camel-minio/src/main/docs/minio-component.adoc
+++ b/components/camel-minio/src/main/docs/minio-component.adoc
@@ -29,10 +29,9 @@ minio://bucketName[?options]
------------------------------
The bucket will be created if it doesn't already exist. +
-You can append query options to the URI in the following format,
-?options=value&option2=value&...
+You can append query options to the URI in the following format: `?options=value&option2=value&...`
-For example in order to read file `hello.txt` from the bucket `helloBucket`, use the following snippet:
+For example, to read file `hello.txt` from the bucket `helloBucket`, use the following snippet:
[source,java]
--------------------------------------------------------------------------------
@@ -62,8 +61,8 @@ the https://min.io/[Minio].
This component implements the Batch Consumer.
-This allows you for instance to know how many messages exists in this
-batch and for instance let the Aggregator
+This allows you, for instance, to know how many messages exist in this
+batch and for instance, let the Aggregator
aggregate this number of messages.
// component headers: START
@@ -99,7 +98,7 @@ from("minio://MyBucket?minioClient=#client&delay=5000&maxMessagesPerPoll=5")
=== Minio Producer Operation examples
-- CopyObject: this operation copy an object from one bucket to a different one
+- CopyObject: this operation copies an object from one bucket to a different one
[source,java]
--------------------------------------------------------------------------------
@@ -135,7 +134,7 @@ This operation will copy the object with the name expressed in the header camelD
This operation will delete the object camelKey from the bucket mycamelbucket.
-- ListBuckets: this operation list the buckets for this account in this region
+- ListBuckets: this operation lists the buckets for this account in this region
[source,java]
--------------------------------------------------------------------------------
@@ -146,7 +145,7 @@ This operation will delete the object camelKey from the bucket mycamelbucket.
This operation will list the buckets for this account
-- DeleteBucket: this operation delete the bucket specified as URI parameter or header
+- DeleteBucket: this operation deletes the bucket specified as URI parameter or header
[source,java]
--------------------------------------------------------------------------------
@@ -168,7 +167,7 @@ This operation will delete the bucket mycamelbucket
This operation will list the objects in the mycamelbucket bucket
-- GetObject: this operation get a single object in a specific bucket
+- GetObject: this operation gets a single object in a specific bucket
[source,java]
--------------------------------------------------------------------------------
@@ -183,9 +182,9 @@ This operation will list the objects in the mycamelbucket bucket
.to("mock:result");
--------------------------------------------------------------------------------
-This operation will return an MinioObject instance related to the camelKey object in mycamelbucket bucket.
+This operation will return a MinioObject instance related to the camelKey object in `mycamelbucket` bucket.
-- GetObjectRange: this operation get a single object range in a specific bucket
+- GetObjectRange: this operation gets a single object range in a specific bucket
[source,java]
--------------------------------------------------------------------------------
@@ -201,7 +200,7 @@ This operation will return an MinioObject instance related to the camelKey objec
.to("minio://mycamelbucket?minioClient=#minioClient&operation=getObjectRange")
.to("mock:result");
--------------------------------------------------------------------------------
-This operation will return an MinioObject instance related to the camelKey object in mycamelbucket bucket, containing bytes from 0 to 9.
+This operation will return a MinioObject instance related to the camelKey object in `mycamelbucket` bucket, containing bytes from 0 to 9.
- createDownloadLink: this operation will return a presigned url through which a file can be downloaded using GET method
@@ -237,26 +236,27 @@ This operation will return an MinioObject instance related to the camelKey objec
createDownLink and createUploadLink have a default expiry of 3600s which can be overridden by setting the header MinioConstants.PRESIGNED_URL_EXPIRATION_TIME (value in seconds)
-== Bucket Autocreation
+== Bucket Auto-creation
With the option `autoCreateBucket` users are able to avoid the autocreation of a Minio Bucket in case it doesn't exist. The default for this option is `true`.
-If set to false any operation on a not-existent bucket in Minio won't be successful, and an error will be returned.
+If set to false, any operation on a not-existent bucket in Minio won't be successful, and an error will be returned.
-== Automatic detection of Minio client in registry
+== Automatic detection of a Minio client in registry
The component is capable of detecting the presence of a Minio bean into the registry.
-If it's the only instance of that type it will be used as client, and you won't have to define it as uri parameter, like the example above.
+If it's the only instance of that type, it will be used as the client, and you won't have to define it as uri parameter, like the example above.
This may be really useful for smarter configuration of the endpoint.
== Moving stuff between a bucket and another bucket
-Some users like to consume stuff from a bucket and move the content in a different one without using the copyObject feature of this component.
-If this is case for you, don't forget to remove the bucketName header from the incoming exchange of the consumer, otherwise the file will always be overwritten on the same
-original bucket.
+Some users like to consume stuff from a bucket and move the content in a different one without using the `copyObject` feature of this component.
+If this is the case for you, remember to remove the `bucketName` header from the incoming exchange of the consumer.
+Otherwise, the file will always be overwritten on the same original bucket.
== MoveAfterRead consumer option
-In addition to deleteAfterRead it has been added another option, moveAfterRead. With this option enabled the consumed object will be moved to a target destinationBucket instead of being only deleted.
+In addition to `deleteAfterRead`, it has been added another option, `moveAfterRead`.
+With this option enabled, the consumed object will be moved to a target `destinationBucket` instead of being only deleted.
This will require specifying the destinationBucket option. As example:
[source,java]
@@ -265,12 +265,13 @@ This will require specifying the destinationBucket option. As example:
.to("mock:result");
--------------------------------------------------------------------------------
-In this case the objects consumed will be moved to myothercamelbucket bucket and deleted from the original one (because of deleteAfterRead set to true as default).
+In this case, the objects consumed will be moved to `myothercamelbucket` bucket and deleted from the original one (because of `deleteAfterRead` set to true as default).
== Using a POJO as body
-Sometimes build a Minio Request can be complex, because of multiple options. We introduce the possibility to use a POJO as body.
-In Minio there are multiple operations you can submit, as an example for List brokers request, you can do something like:
+Sometimes build a Minio Request can be complex because of multiple options.
+We introduce the possibility to use a POJO as the body.
+In Minio, there are multiple operations you can submit, as an example for List brokers request, you can do something like:
[source,java]
------------------------------------------------------------------------------------------------------
@@ -281,7 +282,7 @@ from("direct:minio")
.to("minio://test?minioClient=#minioClient&operation=listObjects&pojoRequest=true")
------------------------------------------------------------------------------------------------------
-In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.
+In this way, you'll pass the request directly without the need of passing headers and options specifically related to this operation.
== Dependencies
(camel) 05/12: CAMEL-20410: documentation fixes for camel-microprofile-fault-tolerance
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 5dcc60228cc84c718ca4ce55ff0f3f971b3a657b
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 13:48:28 2024 +0100
CAMEL-20410: documentation fixes for camel-microprofile-fault-tolerance
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/microprofile-fault-tolerance.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/docs/microprofile-fault-tolerance.adoc b/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/docs/microprofile-fault-tolerance.adoc
index aa62df4709d..74f30ae9028 100644
--- a/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/docs/microprofile-fault-tolerance.adoc
+++ b/components/camel-microprofile/camel-microprofile-fault-tolerance/src/main/docs/microprofile-fault-tolerance.adoc
@@ -11,7 +11,7 @@
This component supports the Circuit Breaker EIP with the MicroProfile Fault Tolerance library.
-For more details see the xref:eips:circuitBreaker-eip.adoc[Circuit Breaker EIP] documentation.
+For more details, see the xref:eips:circuitBreaker-eip.adoc[Circuit Breaker EIP] documentation.
Maven users will need to add the following dependency to their `pom.xml`
for this component:
(camel) 03/12: CAMEL-20410: documentation fixes for camel-micrometer-prometheus
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit d102bad325021ffebb7abb9814db11796315fb1e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 13:45:06 2024 +0100
CAMEL-20410: documentation fixes for camel-micrometer-prometheus
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/micrometer-prometheus.adoc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/components/camel-micrometer-prometheus/src/main/docs/micrometer-prometheus.adoc b/components/camel-micrometer-prometheus/src/main/docs/micrometer-prometheus.adoc
index a6af78e30a2..d1de1038758 100644
--- a/components/camel-micrometer-prometheus/src/main/docs/micrometer-prometheus.adoc
+++ b/components/camel-micrometer-prometheus/src/main/docs/micrometer-prometheus.adoc
@@ -9,7 +9,8 @@
*Since Camel {since}*
-The camel-micrometer-prometheus is used for running Camel standalone (camel-main) and integrate with Micrometer Prometheus Registry.
+The camel-micrometer-prometheus is used for running Camel standalone (Camel Main),
+and to integrate with the Micrometer Prometheus Registry.
== Auto-detection from classpath
(camel) 02/12: CAMEL-20410: documentation fixes for camel-micrometer
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 80b5a2f8d95da808837b918ad6d8fbaa8d9c0365
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 13:44:00 2024 +0100
CAMEL-20410: documentation fixes for camel-micrometer
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/micrometer-component.adoc | 60 +++++++++++-----------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/components/camel-micrometer/src/main/docs/micrometer-component.adoc b/components/camel-micrometer/src/main/docs/micrometer-component.adoc
index 539862d0af9..b296a54dd9e 100644
--- a/components/camel-micrometer/src/main/docs/micrometer-component.adoc
+++ b/components/camel-micrometer/src/main/docs/micrometer-component.adoc
@@ -14,12 +14,12 @@
*{component-header}*
-The Micrometer component allows to collect various metrics directly
+The Micrometer component allows collecting various metrics directly
from Camel routes. Supported metric types
are xref:#MicrometerComponent-counter[counter], xref:#MicrometerComponent-summary[summary],
-and xref:#MicrometerComponent-timer[timer]. http://micrometer.io/[Micrometer] provides
-simple way to measure the behaviour of an application. Configurable
-reporting backends (via Micrometer registries) enable different integration options for
+and xref:#MicrometerComponent-timer[timer].
+http://micrometer.io/[Micrometer] provides a simple way to measure the behaviour of an application.
+The configurable reporting backend (via Micrometer registries) enables different integration options for
collecting and visualizing statistics.
The component also provides
@@ -88,19 +88,19 @@ Some Camel specific metrics are available out of the box.
|camel.routes.running |gauge |Number of routes currently running
|camel.exchanges.inflight |gauge |Route inflight messages
|camel.exchanges.total |counter |Total number of processed exchanges
-|camel.exchanges.succeeded |counter |Number of successfully completed exchange
+|camel.exchanges.succeeded |counter |Number of successfully completed exchanges
|camel.exchanges.failed |counter |Number of failed exchanges
|camel.exchanges.failures.handled |counter |Number of failures handled
|camel.exchanges.external.redeliveries |counter |Number of external initiated redeliveries (such as from JMS broker)
-|camel.exchange.event.notifier |gauge + summary | Metrics for message created, sent, completed, and failed events
+|camel.exchange.event.notifier |gauge + summary | Metrics for messages created, sent, completed, and failed events
|camel.route.policy |gauge + summary |Route performance metrics
|camel.route.policy.long.task |gauge + summary |Route long task metric
|=====================================================
=== Using legacy metrics naming
-In Camel 3.20 or older, then the naming of metrics are using _camelCase_ style.
-However, since Camel 3.21 onwards, the naming is using micrometer convention style (see table above).
+In Camel 3.20 or older, then the naming of metrics is using _camelCase_ style.
+However, since Camel 3.21 onwards, the naming is using the Micrometer convention style (see table above).
To use the legacy naming, then you can use the `LEGACY` naming from the `xxxNamingStrategy` interfaces.
@@ -124,15 +124,15 @@ The naming style can be configured on:
Each meter has type and name. Supported types are
xref:#MicrometerComponent-counter[counter],
-xref:#MicrometerComponent-summary[distribution summary] and
-timer. If no type is provided then a counter is used by default.
+xref:#MicrometerComponent-summary[distribution summary], and
+timer. If no type is provided, then a counter is used by default.
The meter name is a string that is evaluated as `Simple` expression. In addition to using the `CamelMetricsName`
-header (see below), this allows to select the meter depending on exchange data.
+header (see below), this allows selecting the meter depending on exchange data.
The optional `tags` URI parameter is a comma-separated string, consisting of `key=value` expressions. Both
`key` and `value` are strings that are also evaluated as `Simple` expression.
-E.g. the URI parameter `tags=X=${header.Y}` would assign the current value of header `Y` to the key `X`.
+E.g., the URI parameter `tags=X=${header.Y}` would assign the current value of header `Y` to the key `X`.
=== Headers
@@ -174,7 +174,7 @@ micrometer:counter:name[?options]
|decrement |- |Double value to subtract from the counter
|=====================================================
-If neither `increment` or `decrement` is defined then counter value will
+If neither `increment` or `decrement` is defined then value of the counter will
be incremented by one. If `increment` and `decrement` are both defined
only increment operation is called.
@@ -194,7 +194,7 @@ from("direct:in")
.to("direct:out");
----
-Both `increment` and `decrement` values are evaluated as `Simple` expressions with a Double result, e.g.
+Both `increment` and `decrement` values are evaluated as `Simple` expressions with a Double result, e.g.,
if header `X` contains a value that evaluates to 3.0, the `simple.counter` counter is decremented by 3.0:
[source,java]
@@ -271,7 +271,7 @@ from("direct:in")
----
-`value` is evaluated as `Simple` expressions with a Double result, e.g.
+`value` is evaluated as `Simple` expressions with a Double result, e.g.,
if header `X` contains a value that evaluates to 3.0, this value is registered with the `simple.histogram`:
[source,java]
@@ -363,7 +363,7 @@ from("direct:in")
== Using Micrometer route policy factory
`MicrometerRoutePolicyFactory` allows to add a RoutePolicy for each
-route in order to exposes route utilization statistics using Micrometer.
+route to expose route utilization statistics using Micrometer.
This factory can be used in Java and XML as the examples below
demonstrates.
@@ -374,7 +374,7 @@ dedicated `MicrometerRoutePolicy` per route you want to instrument, in case you
want to instrument a few selected routes.
====
-From Java you just add the factory to the `CamelContext` as shown below:
+From Java, you add the factory to the `CamelContext` as shown below:
[source,java]
----
@@ -396,7 +396,7 @@ following options:
|=======================================================================
|Name |Default |Description
|prettyPrint |false |Whether to use pretty print when outputting statistics in json format
-|meterRegistry | |Allow to use a shared `MeterRegistry`. If none is provided then Camel will create a shared instance used by the this CamelContext.
+|meterRegistry | |Allow using a shared `MeterRegistry`. If none is provided, then Camel will create a shared instance used by the CamelContext.
|durationUnit |TimeUnit.MILLISECONDS |The unit to use for duration in when dumping the statistics as json.
|configuration | see below |MicrometerRoutePolicyConfiguration.class
|=======================================================================
@@ -429,7 +429,7 @@ statistics while routing messages. It works by using a Micrometer Timer for
each node in all the routes. This factory can be used in Java and XML as
the examples below demonstrates.
-From Java you just set the factory to the `CamelContext` as shown below:
+From Java, you set the factory to the `CamelContext` as shown below:
[source,java]
----
@@ -444,20 +444,20 @@ And from XML DSL you define a <bean> as follows:
<bean id="metricsMessageHistoryFactory" class="org.apache.camel.component.micrometer.messagehistory.MicrometerMessageHistoryFactory"/>
----
-The following options is supported on the factory:
+The following options are supported on the factory:
[width="100%",options="header"]
|=======================================================================
|Name |Default |Description
|prettyPrint |false |Whether to use pretty print when outputting statistics in json format
-|meterRegistry | |Allow to use a shared `MeterRegistry`. If none is provided then Camel will create a shared instance used by the this CamelContext.
+|meterRegistry | |Allow using a shared `MeterRegistry`. If none is provided, then Camel will create a shared instance used by the CamelContext.
|durationUnit |TimeUnit.MILLISECONDS |The unit to use for duration when dumping the statistics as json.
|=======================================================================
-At runtime the metrics can be accessed from Java API or JMX which allows
+At runtime the metrics can be accessed from Java API or JMX, which allows
to gather the data as json output.
-From Java code you can get the service from the CamelContext as
+From Java code, you can get the service from the CamelContext as
shown:
[source,java]
@@ -481,10 +481,10 @@ EventNotifiers can be added to the CamelContext, e.g.:
camelContext.getManagementStrategy().addEventNotifier(new MicrometerExchangeEventNotifier())
----
-At runtime the metrics can be accessed from Java API or JMX which allows
+At runtime the metrics can be accessed from Java API or JMX, which allows
to gather the data as json output.
-From Java code you can do get the service from the CamelContext as
+From Java code, you can get the service from the CamelContext as
shown:
[source,java]
@@ -500,15 +500,15 @@ with `name=MicrometerEventNotifier`.
== Instrumenting Camel thread pools
`InstrumentedThreadPoolFactory` allows you to gather performance information about Camel Thread Pools by injecting a `InstrumentedThreadPoolFactory`
-which collects information from inside of Camel.
+which collects information from the inside of Camel.
See more details at xref:manual::threading-model.adoc[Threading Model].
== Exposing Micrometer statistics in JMX
-Micrometer uses `MeterRegistry` implementations in order to publish statistics. While in production scenarios it is advisable to select a dedicated backend like Prometheus or Graphite, it may be sufficient for test or local deployments to publish statistics to JMX.
+Micrometer uses `MeterRegistry` implementations to publish statistics. While in production scenarios it is advisable to select a dedicated backend like Prometheus or Graphite, it may be sufficient for test or local deployments to publish statistics to JMX.
-In order to achieve this, add the following dependency:
+To achieve this, add the following dependency:
[source,xml]
----
@@ -582,9 +582,9 @@ camel.metrics.binders=processor,jvm-info,file-descriptor
== Using Camel Micrometer with Spring Boot
-When you use `camel-micrometer-starter` with Spring Boot, then Spring Boot auto configuration will automatically enable metrics capture if a `io.micrometer.core.instrument.MeterRegistry` is available.
+When you use `camel-micrometer-starter` with Spring Boot, then Spring Boot autoconfiguration will automatically enable metrics capture if a `io.micrometer.core.instrument.MeterRegistry` is available.
-For example to capture data with Prometheus, you can add the following dependency:
+For example, to capture data with Prometheus, you can add the following dependency:
[source,xml]
----
(camel) 10/12: CAMEL-20410: documentation fixes for camel-mustache
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1e9878d9b179dcf4fc27241d678b791c1f25e577
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 14:04:22 2024 +0100
CAMEL-20410: documentation fixes for camel-mustache
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-mustache/src/main/docs/mustache-component.adoc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/components/camel-mustache/src/main/docs/mustache-component.adoc b/components/camel-mustache/src/main/docs/mustache-component.adoc
index 6f4ec3d9c1a..b7bbea54768 100644
--- a/components/camel-mustache/src/main/docs/mustache-component.adoc
+++ b/components/camel-mustache/src/main/docs/mustache-component.adoc
@@ -38,8 +38,8 @@ mustache:templateName[?options]
-------------------------------
Where *templateName* is the classpath-local URI of the template to
-invoke; or the complete URL of the remote template (eg:
-\file://folder/myfile.mustache).
+invoke; or the complete URL of the remote template (e.g.:
+`\file://folder/myfile.mustache`).
// component-configure options: START
@@ -86,7 +86,7 @@ Camel will provide exchange information in the Mustache context (just a
Camel provides two headers by which you can define a different resource
location for a template or the template content itself. If any of these
-headers is set then Camel uses this over the endpoint configured
+headers is set, then Camel uses this over the endpoint configured
resource. This allows you to provide a dynamic template at runtime.
// component headers: START
@@ -95,7 +95,7 @@ include::partial$component-endpoint-headers.adoc[]
== Samples
-For example you could use something like:
+For example, you could use something like:
[source,java]
--------------------------------------------
@@ -107,7 +107,7 @@ To use a Mustache template to formulate a response for a message for
InOut message exchanges (where there is a `JMSReplyTo` header).
If you want to use InOnly and consume the message and send it to another
-destination you could use:
+destination, you could use:
[source,java]
--------------------------------------------
@@ -128,7 +128,7 @@ to("mustache:dummy?allowTemplateFromHeader=true");
== The Email Sample
-In this sample we want to use Mustache templating for an order
+In this sample, we want to use Mustache templating for an order
confirmation email. The email template is laid out in Mustache as:
-------------------------------------------------
(camel) 12/12: CAMEL-20410: documentation fixes for camel-mybatis
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 88e5828226326e41beb2849c7ca42bb900564893
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 14:08:25 2024 +0100
CAMEL-20410: documentation fixes for camel-mybatis
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/mybatis-bean-component.adoc | 6 +++---
.../src/main/docs/mybatis-component.adoc | 20 ++++++++++----------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/components/camel-mybatis/src/main/docs/mybatis-bean-component.adoc b/components/camel-mybatis/src/main/docs/mybatis-bean-component.adoc
index e775d08f92c..ef3cfaaa0bb 100644
--- a/components/camel-mybatis/src/main/docs/mybatis-bean-component.adoc
+++ b/components/camel-mybatis/src/main/docs/mybatis-bean-component.adoc
@@ -18,7 +18,7 @@ The MyBatis Bean component allows you to query, insert, update and
delete data in a relational database using http://mybatis.org/[MyBatis] bean annotations.
This component can **only** be used as a producer. If you want to consume
-from MyBatis then use the regular **mybatis** component.
+from MyBatis, then use the regular **mybatis** component.
Maven users will need to add the following dependency to their `pom.xml`
for this component:
@@ -66,8 +66,8 @@ the header with the key `CamelMyBatisResult`.
== Samples
-For example if you wish to consume beans from a JMS queue and insert
-them into a database you could do the following:
+For example, if you wish to consume beans from a JMS queue and insert
+them into a database, you could do the following:
[source,java]
----
diff --git a/components/camel-mybatis/src/main/docs/mybatis-component.adoc b/components/camel-mybatis/src/main/docs/mybatis-component.adoc
index 610fdd4b3f9..f504dd98e1a 100644
--- a/components/camel-mybatis/src/main/docs/mybatis-component.adoc
+++ b/components/camel-mybatis/src/main/docs/mybatis-component.adoc
@@ -79,8 +79,8 @@ the header with the key `CamelMyBatisResult`.
== Samples
-For example if you wish to consume beans from a JMS queue and insert
-them into a database you could do the following:
+For example, if you wish to consume beans from a JMS queue and insert
+them into a database, you could do the following:
[source,java]
----
@@ -111,7 +111,7 @@ Where *insertAccount* is the MyBatis ID in the SQL mapping file:
== Using StatementType for better control of MyBatis
-When routing to an MyBatis endpoint you will want more fine grained
+When routing to an MyBatis endpoint, you will want more fine-grained
control so you can control whether the SQL statement to be executed is a
`SELECT`, `UPDATE`, `DELETE` or `INSERT` etc. So for instance if we want
to route to an MyBatis endpoint in which the IN body contains parameters
@@ -152,7 +152,7 @@ from("direct:start")
MyBatis allows you to insert multiple rows using its for-each batch
driver. To use this, you need to use the <foreach> in the mapper XML
-file. For example as shown below:
+file. For example, as shown below:
[source,xml]
----
@@ -187,7 +187,7 @@ from("direct:start")
MyBatis allows you to update multiple rows using its for-each batch
driver. To use this, you need to use the <foreach> in the mapper XML
-file. For example as shown below:
+file. For example, as shown below:
[source,xml]
----
@@ -217,7 +217,7 @@ from("direct:start")
MyBatis allows you to delete multiple rows using its for-each batch
driver. To use this, you need to use the <foreach> in the mapper XML
-file. For example as shown below:
+file. For example, as shown below:
[source,xml]
----
@@ -244,14 +244,14 @@ from("direct:start")
=== Notice on InsertList, UpdateList and DeleteList StatementTypes
-Parameter of any type (List, Map, etc.) can be passed to mybatis and an
+Parameter of any type (List, Map, etc.) can be passed to mybatis, and an
end user is responsible for handling it as required with the help of
http://www.mybatis.org/mybatis-3/dynamic-sql.html[mybatis dynamic queries] capabilities.
=== Scheduled polling example
This component supports scheduled polling and can therefore be used as
-a Polling Consumer. For example to poll the
+a Polling Consumer. For example, to poll the
database every minute:
[source,java]
@@ -293,7 +293,7 @@ by commas.
The route below illustrates we execute the *consumeAccount* statement
data is processed. This allows us to change the status of the row in the
-database to processed, so we avoid consuming it twice or more.
+database to process, so we avoid consuming it twice or more.
[source,java]
----
@@ -404,7 +404,7 @@ Spring Boot users can use https://mybatis.org/spring-boot-starter/mybatis-spring
</dependency>
----
-in particular auto configured beans from mybatis-spring-boot-starter can be used as follows:
+in particular, autoconfigured beans from mybatis-spring-boot-starter can be used as follows:
[source,properties]
----
(camel) 06/12: CAMEL-20410: documentation fixes for camel-mina
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 193b55c8231266177c2508d6eef6ef98613c4517
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 13:51:44 2024 +0100
CAMEL-20410: documentation fixes for camel-mina
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../camel-mina/src/main/docs/mina-component.adoc | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/components/camel-mina/src/main/docs/mina-component.adoc b/components/camel-mina/src/main/docs/mina-component.adoc
index bed108a288b..4c29aaece85 100644
--- a/components/camel-mina/src/main/docs/mina-component.adoc
+++ b/components/camel-mina/src/main/docs/mina-component.adoc
@@ -14,7 +14,7 @@
*{component-header}*
-The Mina component is a transport for working with
+The Mina component is a transport mechanism for working with
http://mina.apache.org/[Apache MINA 2.x]
[TIP]
@@ -23,8 +23,8 @@ Favor using xref:netty-component.adoc[Netty] as Netty is a much more active
maintained and popular project than Apache Mina currently is.
====
-WARNING: Be careful with `sync=false` on consumer endpoints. Since camel-mina all
-consumer exchanges are InOut. This is different to camel-mina.
+WARNING: Be careful with `sync=false` on consumer endpoints. In camel-mina, all
+consumer exchanges are `InOut`. This is different to camel-mina.
Maven users will need to add the following dependency to their `pom.xml`
for this component:
@@ -49,8 +49,8 @@ mina:vm://hostname[:port][?options]
You can specify a codec in the Registry using the
*codec* option. If you are using TCP and no codec is specified then the
-`textline` flag is used to determine if text line based codec or object
-serialization should be used instead. By default the object
+`textline` flag is used to determine if text-line-based codec or object
+serialization should be used instead. By default, the object
serialization is used.
For UDP if no codec is specified the default uses a basic `ByteBuffer`
@@ -97,7 +97,7 @@ your codec. See xref:dataformats:hl7-dataformat.adoc[HL7] that has a custom code
In this sample, Camel exposes a service that listens for TCP connections
on port 6200. We use the *textline* codec. In our route, we create a
-Mina consumer endpoint that listens on port 6200:
+Mina consumer endpoint that listens to on port 6200:
[source,java]
---------------------------------------------------------------------------------------
@@ -147,8 +147,8 @@ assertEquals("Bye World", response);
== Sample with Spring DSL
-Spring DSL can, of course, also be used for xref:mina-component.adoc[MINA]. In the
-sample below we expose a TCP server on port 5555:
+Spring DSL can also be used for xref:mina-component.adoc[MINA].
+In the sample below, we expose a TCP server on port 5555:
[source,xml]
-----------------------------------------------------------
@@ -173,7 +173,7 @@ could be implemented as follows:
== Closing Session When Complete
-When acting as a server you sometimes want to close the session when,
+When acting as a server, you sometimes want to close the session when,
for example, a client conversion is finished. To instruct Camel to close
the session, you should add a header with the key
`CamelMinaCloseSessionWhenComplete` set to a boolean `true` value.
@@ -203,7 +203,7 @@ with the key `MinaConstants.MINA_REMOTE_ADDRESS`.
Filters permit you to use some Mina Filters, such as `SslFilter`. You
can also implement some customized filters. Please note that `codec` and
-`logger` are also implemented as Mina filters of type, `IoFilter`. Any
+`logger` are also implemented as Mina filters of the type, `IoFilter`. Any
filters you may define are appended to the end of the filter chain; that
is, after `codec` and `logger`.
(camel) 04/12: CAMEL-20410: documentation fixes for camel-microprofile-config
Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit b72c6505350e71c7816a20905e7faae26002a807
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Feb 21 13:47:08 2024 +0100
CAMEL-20410: documentation fixes for camel-microprofile-config
- Fixed samples
- Fixed grammar and typos
- Fixed punctuation
- Added and/or fixed links
- Converted to use tabs
---
.../src/main/docs/microprofile-config.adoc | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/components/camel-microprofile/camel-microprofile-config/src/main/docs/microprofile-config.adoc b/components/camel-microprofile/camel-microprofile-config/src/main/docs/microprofile-config.adoc
index 922c3018af0..a73ac4fc743 100644
--- a/components/camel-microprofile/camel-microprofile-config/src/main/docs/microprofile-config.adoc
+++ b/components/camel-microprofile/camel-microprofile-config/src/main/docs/microprofile-config.adoc
@@ -9,14 +9,15 @@
*Since Camel {since}*
-The microprofile-config component is used for bridging the Eclipse MicroProfile Config with Camels
-properties component. This allows to use configuration management from Eclipse MicroProfile with Camel.
+The microprofile-config component is used for bridging the Eclipse MicroProfile Config with the
+xref:properties-component.adoc[Properties Component].
+This allows using configuration management from Eclipse MicroProfile with Camel.
-To enable this just add this component to the classpath and Camel should auto-detect this when starting up.
+To enable this, add this component to the classpath and Camel should auto-detect this when starting up.
== Register manually
-You can also register the microprofile-config component manually with Apache Camel properties component as shown below:
+You can also register the microprofile-config component manually with the Apache Camel Properties Component as shown below:
[source,java]
----