This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/master by this push:
new b4fa905 Regen
b4fa905 is described below
commit b4fa90506ca04ebdf0030e717fd873f70e43668b
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jan 20 12:51:59 2021 +0100
Regen
---
.../springboot/catalog/components/jsonata.json | 2 +-
.../src/main/docs/spring-boot.adoc | 8 +++-
.../spring/boot/CamelConfigurationProperties.java | 50 ++++++++++++++++++++++
docs/modules/ROOT/pages/spring-boot.adoc | 8 +++-
tooling/camel-spring-boot-dependencies/pom.xml | 5 +++
5 files changed, 70 insertions(+), 3 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jsonata.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jsonata.json
index 2dfaab6..4979431 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jsonata.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/jsonata.json
@@ -29,7 +29,7 @@
"resourceUri": { "kind": "path", "displayName": "Resource Uri", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Path to the resource. You can prefix
with: classpath, file, http, ref, or bean. classpath, file and http loads the
resource using these protocols (classpath is default). ref will lookup the
resource in the registry. bean will [...]
"allowContextMapAll": { "kind": "parameter", "displayName": "Allow Context
Map All", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Sets whether the
context map should allow access to all details. By default only the message
body and headers can be accessed. This option can be enabled for full access to
the current Exchange and CamelContext. [...]
"contentCache": { "kind": "parameter", "displayName": "Content Cache",
"group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "Sets whether to use resource
content cache or not" },
- "inputType": { "kind": "parameter", "displayName": "Input Type", "group":
"producer", "label": "", "required": false, "type": "object", "javaType":
"org.apache.camel.component.jsonata.JsonataInputOutputType", "enum": [
"Jackson", "JsonString" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "Jackson", "description": "Specifies if the output
should be Jackson JsonNode or a JSON String." },
+ "inputType": { "kind": "parameter", "displayName": "Input Type", "group":
"producer", "label": "", "required": false, "type": "object", "javaType":
"org.apache.camel.component.jsonata.JsonataInputOutputType", "enum": [
"Jackson", "JsonString" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "Jackson", "description": "Specifies if the input should
be Jackson JsonNode or a JSON String." },
"lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start
Producer", "group": "producer", "label": "producer", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "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 sta [...]
"outputType": { "kind": "parameter", "displayName": "Output Type",
"group": "producer", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.jsonata.JsonataInputOutputType",
"enum": [ "Jackson", "JsonString" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "Jackson", "description": "Specifies if the
output should be Jackson JsonNode or a JSON String." }
}
diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.adoc
b/core/camel-spring-boot/src/main/docs/spring-boot.adoc
index f3695eb..c8b7b00 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.adoc
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.adoc
@@ -92,7 +92,7 @@ When using spring-boot with Spring Boot make sure to use the
following Maven dep
----
-The component supports 159 options, which are listed below.
+The component supports 165 options, which are listed below.
@@ -200,6 +200,12 @@ The component supports 159 options, which are listed below.
| *camel.springboot.shutdown-routes-in-reverse-order* | Sets whether routes
should be shutdown in reverse or the same order as they where started. | true |
Boolean
| *camel.springboot.shutdown-suppress-logging-on-timeout* | Whether Camel
should try to suppress logging during shutdown and timeout was triggered,
meaning forced shutdown is happening. And during forced shutdown we want to
avoid logging errors/warnings et all in the logs as a side-effect of the forced
timeout. Notice the suppress is a best effort as there may still be some logs
coming from 3rd party libraries and whatnot, which Camel cannot control. This
option is default false. | false [...]
| *camel.springboot.shutdown-timeout* | Timeout in seconds to graceful
shutdown Camel. | 300 | Integer
+| *camel.springboot.startup-recorder* | To use startup recorder for capturing
execution time during starting Camel. The recorder can be one of: false,
logging, java-flight-recorder The default is false. | false | String
+| *camel.springboot.startup-recorder-dir* | Directory to store the recording.
By default the user home directory will be used. Use false to turn off saving
recording to disk. | | String
+| *camel.springboot.startup-recorder-duration* | How long time to run the
startup recorder. Use 0 (default) to stop the recorder after Camel has been
started. Use -1 to keep the recorder running until Camel is being stopped. A
positive value is to run the recorder for N seconds. When the recorder is
stopped then the recording is auto saved to disk | 0 | Long
+| *camel.springboot.startup-recorder-max-depth* | To filter our sub steps at a
maximum depth. Use -1 for no maximum. Use 0 for no sub steps. Use 1 for max 1
sub step, and so forth. The default is -1. | -1 | Integer
+| *camel.springboot.startup-recorder-profile* | To use a specific Java Flight
Recorder profile configuration, such as default or profile. The default is
default. | default | String
+| *camel.springboot.startup-recorder-recording* | To enable Java Flight
Recorder to start a recording and automatic dump the recording to disk after
startup is complete. This requires that camel-jfr is on the classpath. The
default is true. | true | Boolean
| *camel.springboot.stream-caching-any-spool-rules* | Sets whether if just any
of the org.apache.camel.spi.StreamCachingStrategy.SpoolRule rules returns true
then shouldSpoolCache(long) returns true, to allow spooling to disk. If this
option is false, then all the
org.apache.camel.spi.StreamCachingStrategy.SpoolRule must return true. The
default value is false which means that all the rules must return true. | false
| Boolean
| *camel.springboot.stream-caching-buffer-size* | Sets the stream caching
buffer size to use when allocating in-memory buffers used for in-memory stream
caches. The default size is 4096. | 0 | Integer
| *camel.springboot.stream-caching-enabled* | Sets whether stream caching is
enabled or not. Default is false. | false | Boolean
diff --git
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
index 1a2e85f..6ee26ab 100644
---
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
+++
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
@@ -666,6 +666,56 @@ public class CamelConfigurationProperties extends
DefaultConfigurationProperties
*/
private boolean lightweight;
+ /**
+ * To use startup recorder for capturing execution time during starting
Camel. The recorder can be one of: false,
+ * logging, java-flight-recorder
+ *
+ * The default is false.
+ */
+ private String startupRecorder = "false";
+
+ /**
+ * To filter our sub steps at a maximum depth.
+ *
+ * Use -1 for no maximum. Use 0 for no sub steps. Use 1 for max 1 sub
step, and so forth.
+ *
+ * The default is -1.
+ */
+ private int startupRecorderMaxDepth = -1;
+
+ /**
+ * To enable Java Flight Recorder to start a recording and automatic dump
the recording to disk after startup is
+ * complete.
+ *
+ * This requires that camel-jfr is on the classpath.
+ *
+ * The default is true.
+ */
+ private boolean startupRecorderRecording = true;
+
+ /**
+ * To use a specific Java Flight Recorder profile configuration, such as
default or profile.
+ *
+ * The default is default.
+ */
+ private String startupRecorderProfile = "default";
+
+ /**
+ * How long time to run the startup recorder.
+ *
+ * Use 0 (default) to stop the recorder after Camel has been started. Use
-1 to keep the recorder running until
+ * Camel is being stopped. A positive value is to run the recorder for N
seconds.
+ *
+ * When the recorder is stopped then the recording is auto saved to disk
+ */
+ private long startupRecorderDuration;
+
+ /**
+ * Directory to store the recording. By default the user home directory
will be used. Use false to turn off saving
+ * recording to disk.
+ */
+ private String startupRecorderDir;
+
// Getters & setters
// -----------------
diff --git a/docs/modules/ROOT/pages/spring-boot.adoc
b/docs/modules/ROOT/pages/spring-boot.adoc
index f3695eb..71802f0 100644
--- a/docs/modules/ROOT/pages/spring-boot.adoc
+++ b/docs/modules/ROOT/pages/spring-boot.adoc
@@ -92,7 +92,7 @@ When using spring-boot with Spring Boot make sure to use the
following Maven dep
----
-The component supports 159 options, which are listed below.
+The component supports 165 options, which are listed below.
@@ -200,6 +200,12 @@ The component supports 159 options, which are listed below.
| *camel.springboot.shutdown-routes-in-reverse-order* | Sets whether routes
should be shutdown in reverse or the same order as they where started. | true |
Boolean
| *camel.springboot.shutdown-suppress-logging-on-timeout* | Whether Camel
should try to suppress logging during shutdown and timeout was triggered,
meaning forced shutdown is happening. And during forced shutdown we want to
avoid logging errors/warnings et all in the logs as a side-effect of the forced
timeout. Notice the suppress is a best effort as there may still be some logs
coming from 3rd party libraries and whatnot, which Camel cannot control. This
option is default false. | false [...]
| *camel.springboot.shutdown-timeout* | Timeout in seconds to graceful
shutdown Camel. | 300 | Integer
+| *camel.springboot.startup-recorder* | | | String
+| *camel.springboot.startup-recorder-dir* | | | String
+| *camel.springboot.startup-recorder-duration* | | | Long
+| *camel.springboot.startup-recorder-max-depth* | | | Integer
+| *camel.springboot.startup-recorder-profile* | | | String
+| *camel.springboot.startup-recorder-recording* | | | Boolean
| *camel.springboot.stream-caching-any-spool-rules* | Sets whether if just any
of the org.apache.camel.spi.StreamCachingStrategy.SpoolRule rules returns true
then shouldSpoolCache(long) returns true, to allow spooling to disk. If this
option is false, then all the
org.apache.camel.spi.StreamCachingStrategy.SpoolRule must return true. The
default value is false which means that all the rules must return true. | false
| Boolean
| *camel.springboot.stream-caching-buffer-size* | Sets the stream caching
buffer size to use when allocating in-memory buffers used for in-memory stream
caches. The default size is 4096. | 0 | Integer
| *camel.springboot.stream-caching-enabled* | Sets whether stream caching is
enabled or not. Default is false. | false | Boolean
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml
b/tooling/camel-spring-boot-dependencies/pom.xml
index ad22a3b..815a5fa 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -2999,6 +2999,11 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
+ <artifactId>camel-jfr</artifactId>
+ <version>3.8.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
<artifactId>camel-jgroups</artifactId>
<version>3.8.0-SNAPSHOT</version>
</dependency>