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/01 16:33:44 UTC
[camel] branch main updated: CAMEL-18448: camel-jbang - Capture number of reloads
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 f1b16e6c493 CAMEL-18448: camel-jbang - Capture number of reloads
f1b16e6c493 is described below
commit f1b16e6c4930ef1621118cac3f26c0c1631b04ae
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Sep 1 18:33:34 2022 +0200
CAMEL-18448: camel-jbang - Capture number of reloads
---
.../camel/dsl/jbang/core/commands/process/CamelContextStatus.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextStatus.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextStatus.java
index f4dcf9e59df..e770ac8834a 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextStatus.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextStatus.java
@@ -77,6 +77,7 @@ public class CamelContextStatus extends ProcessBaseCommand {
row.total = stats.get("exchangesTotal").toString();
row.inflight = stats.get("exchangesInflight").toString();
row.failed = stats.get("exchangesFailed").toString();
+ row.reloaded = stats.get("reloaded").toString();
Object last = stats.get("sinceLastExchange");
if (last != null) {
row.sinceLast = last.toString();
@@ -116,6 +117,8 @@ public class CamelContextStatus extends ProcessBaseCommand {
new Column().header("READY").dataAlign(HorizontalAlign.CENTER).with(r -> r.ready),
new Column().header("STATUS").headerAlign(HorizontalAlign.CENTER)
.with(r -> extractState(r.state)),
+ new Column().header("RELOAD").headerAlign(HorizontalAlign.CENTER)
+ .with(r -> r.reloaded),
new Column().header("AGE").headerAlign(HorizontalAlign.CENTER).with(r -> r.ago),
new Column().header("ROUTE").with(this::getRoutes),
new Column().header("TOTAL").with(r -> r.total),
@@ -174,6 +177,7 @@ public class CamelContextStatus extends ProcessBaseCommand {
int routeStarted;
int routeTotal;
int state;
+ String reloaded;
String ago;
long uptime;
String total;