This is an automated email from the ASF dual-hosted git repository.

andytaylor pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/artemis-console.git

commit 3716432620214d0eea4bd8a4da2a5c7f91737c71
Author: gchuf <[email protected]>
AuthorDate: Fri Apr 10 22:34:39 2026 +0200

    ARTEMIS-5998 - Add additional info under broker info
---
 .../artemis-console-plugin/src/artemis-service.ts      | 18 +++++++++++++++++-
 .../artemis-console-plugin/src/status/Status.tsx       |  6 +++++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
index 3dbfdd0..8cba50a 100644
--- 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
+++ 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/artemis-service.ts
@@ -52,6 +52,10 @@ export type BrokerInfo = {
     maxDiskUsage: number
     haPolicy: string | InaccessibleValue
     networkTopology: BrokerNetworkTopology
+    backup: string | InaccessibleValue
+    clustered: string | InaccessibleValue
+    connectionCount: number
+    replicaSync: string | InaccessibleValue
 }
 
 export class BrokerNetworkTopology {
@@ -178,7 +182,11 @@ const jolokiaAttributes = [
     "AddressMemoryUsage",
     "HAPolicy",
     "DiskStoreUsage",
-    "MaxDiskUsage"
+    "MaxDiskUsage",
+    "Backup",
+    "Clustered",
+    "ConnectionCount",
+    "ReplicaSync"
 ];
 
 /**
@@ -273,6 +281,10 @@ class ArtemisService {
                 if (diskStoreUsage > 0) {
                     diskStoreUsagePercentage = diskStoreUsage * 100;
                 }
+                const backup = response.Backup as string | InaccessibleValue;
+                const clustered = response.Clustered as string | 
InaccessibleValue;
+                const connectionCount = response.ConnectionCount as number;
+                const replicaSync = response.ReplicaSync as string | 
InaccessibleValue;
                 const topology = await 
jolokiaService.execute(brokerObjectName, LIST_NETWORK_TOPOLOGY_SIG).catch(e => {
                     eventService.notify({type: 'warning', message: 
jolokiaService.errorMessage(e) })
                     return "{}"
@@ -290,6 +302,10 @@ class ArtemisService {
                     diskStoreUsagePercentage: diskStoreUsagePercentage,
                     maxDiskUsage: maxDiskUsage,
                     haPolicy: haPolicy,
+                    backup: backup,
+                    clustered: clustered,
+                    connectionCount: connectionCount,
+                    replicaSync: replicaSync,
                     networkTopology: new 
BrokerNetworkTopology(JSON.parse(topology))
                 };
                 resolve({ loaded: true, accessible: true, info: brokerInfo });
diff --git 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/status/Status.tsx
 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/status/Status.tsx
index ed00675..eea1a01 100644
--- 
a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/status/Status.tsx
+++ 
b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/status/Status.tsx
@@ -172,7 +172,7 @@ export const Status: React.FunctionComponent = () => {
                 </Tooltip>
             )
         } else {
-            return (v ? "" + v : "")
+            return v !== null && v !== undefined ? String(v) : ""
         }
     }
 
@@ -204,6 +204,10 @@ export const Status: React.FunctionComponent = () => {
                                     <TextListItem 
component={TextListItemVariants.dd}>Uptime: 
{actualValue(brokerInfo?.uptime)}</TextListItem>
                                     <TextListItem 
component={TextListItemVariants.dd}>Started: 
{actualValue(brokerInfo?.started)}</TextListItem>
                                     <TextListItem 
component={TextListItemVariants.dd}>HA Policy: 
{actualValue(brokerInfo?.haPolicy)}</TextListItem>
+                                    <TextListItem 
component={TextListItemVariants.dd}>Is backup: 
{actualValue(brokerInfo?.backup)}</TextListItem>
+                                    <TextListItem 
component={TextListItemVariants.dd}>Clustered: 
{actualValue(brokerInfo?.clustered)}</TextListItem>
+                                    <TextListItem 
component={TextListItemVariants.dd}>Replica synced: 
{actualValue(brokerInfo?.replicaSync)}</TextListItem>
+                                    <TextListItem 
component={TextListItemVariants.dd}>Connection count: 
{actualValue(brokerInfo?.connectionCount)}</TextListItem>
                                 </TextList>
                             </TextContent>
                         </CardBody>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to