You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/09/26 09:34:37 UTC
[camel] branch main updated: camel-jbang - enable a bunch of other stuff that gives more details for developers
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 704f18fe93a camel-jbang - enable a bunch of other stuff that gives more details for developers
704f18fe93a is described below
commit 704f18fe93aa2902eeb826c96238e4d7c9bbf0e2
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Sep 26 11:34:14 2022 +0200
camel-jbang - enable a bunch of other stuff that gives more details for developers
---
.../src/main/java/org/apache/camel/main/KameletMain.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
index 21e129d52b4..16150649181 100644
--- a/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
+++ b/dsl/camel-kamelet-main/src/main/java/org/apache/camel/main/KameletMain.java
@@ -22,6 +22,7 @@ import java.util.Objects;
import org.apache.camel.CamelContext;
import org.apache.camel.ExtendedCamelContext;
+import org.apache.camel.ManagementStatisticsLevel;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.RuntimeCamelException;
import org.apache.camel.impl.DefaultCamelContext;
@@ -338,11 +339,16 @@ public class KameletMain extends MainCommandLineSupport {
}
// always enable developer console as it is needed by camel-cli-connector
configure().withDevConsoleEnabled(true);
- // and include timestamps in events, so we can see when they happened
+ // and enable a bunch of other stuff that gives more details for developers
configure().withCamelEventsTimestampEnabled(true);
configure().withLoadHealthChecks(true);
configure().withModeline(true);
configure().withLoadStatisticsEnabled(true);
+ configure().withMessageHistory(true);
+ configure().withInflightRepositoryBrowseEnabled(true);
+ configure().withEndpointRuntimeStatisticsEnabled(true);
+ configure().withJmxManagementStatisticsLevel(ManagementStatisticsLevel.Extended);
+ configure().withShutdownTimeout(10);
boolean health = "true".equals(getInitialProperties().get("camel.jbang.health"));
if (health && port == null) {
@@ -446,8 +452,6 @@ public class KameletMain extends MainCommandLineSupport {
addInitialProperty("camel.component.kamelet.location", location);
addInitialProperty("camel.component.rest.consumerComponentName", "platform-http");
addInitialProperty("camel.component.rest.producerComponentName", "vertx-http");
- addInitialProperty("camel.main.jmxManagementStatisticsLevel", "Extended");
- addInitialProperty("camel.main.shutdownTimeout", "10");
}
protected String startupInfo() {