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 999b126d04003739b0f6887cb411f64aded4c37b
Author: gchuf <[email protected]>
AuthorDate: Fri Apr 10 21:45:04 2026 +0200

    ARTEMIS-5998 - use booleans instead of strings
---
 .../artemis-console-plugin/src/artemis-service.ts        | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 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 8cba50a..75c5e40 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
@@ -43,7 +43,7 @@ export type BrokerInfo = {
     nodeID: string
     objectName: string
     version: string | InaccessibleValue
-    started: string | InaccessibleValue
+    started: boolean | InaccessibleValue
     uptime: string | InaccessibleValue
     globalMaxSizeMB: number
     addressMemoryUsage: number
@@ -52,10 +52,10 @@ export type BrokerInfo = {
     maxDiskUsage: number
     haPolicy: string | InaccessibleValue
     networkTopology: BrokerNetworkTopology
-    backup: string | InaccessibleValue
-    clustered: string | InaccessibleValue
+    backup: boolean | InaccessibleValue
+    clustered: boolean | InaccessibleValue
     connectionCount: number
-    replicaSync: string | InaccessibleValue
+    replicaSync: boolean | InaccessibleValue
 }
 
 export class BrokerNetworkTopology {
@@ -263,7 +263,7 @@ class ArtemisService {
                 const name = response.Name as string;
                 const nodeID = response.NodeID as string;
                 const version = response.Version as string | InaccessibleValue;
-                const started = response.Started as string | InaccessibleValue;
+                const started = response.Started as boolean | 
InaccessibleValue;
                 const globalMaxSize = response.GlobalMaxSize as number;
                 const addressMemoryUsage = response.AddressMemoryUsage as 
number;
                 const uptime = response.Uptime as string | InaccessibleValue;
@@ -281,10 +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 backup = response.Backup as boolean | InaccessibleValue;
+                const clustered = response.Clustered as boolean | 
InaccessibleValue;
                 const connectionCount = response.ConnectionCount as number;
-                const replicaSync = response.ReplicaSync as string | 
InaccessibleValue;
+                const replicaSync = response.ReplicaSync as boolean | 
InaccessibleValue;
                 const topology = await 
jolokiaService.execute(brokerObjectName, LIST_NETWORK_TOPOLOGY_SIG).catch(e => {
                     eventService.notify({type: 'warning', message: 
jolokiaService.errorMessage(e) })
                     return "{}"


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

Reply via email to