This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git
The following commit(s) were added to refs/heads/main by this push:
new c316bca ARTEMIS-5742: Implement readSpecifiedAttributes method
c316bca is described below
commit c316bcadfadf982f64f723ba14fe6f3b958fd58f
Author: GChuf <[email protected]>
AuthorDate: Tue Nov 18 22:56:11 2025 +0100
ARTEMIS-5742: Implement readSpecifiedAttributes method
---
.../artemis-console-plugin/src/artemis-service.ts | 15 +++++++++++++--
1 file changed, 13 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 084f2dd..ea8c665 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
@@ -166,6 +166,17 @@ const MS_PER_HOUR = 60 * MS_PER_MIN;
const MS_PER_DAY = 24 * MS_PER_HOUR;
const typeLabels = ["DEFAULT", "1", "object", "text", "bytes", "map",
"stream", "embedded"];
+const jolokiaAttributes = [
+ "Name",
+ "NodeID",
+ "Version",
+ "Started",
+ "Uptime",
+ "GlobalMaxSize",
+ "AddressMemoryUsage",
+ "HAPolicy"
+];
+
/**
* Main Artemis service that manages Broker information and topology. Needs
properly configured `jolokiaService`
* from `@hawtio/react` which may require authenticated user.
@@ -231,7 +242,7 @@ class ArtemisService {
return
}
- const response = await
jolokiaService.readAttributes(brokerObjectName).catch(e => {
+ const response = await
jolokiaService.readSpecifiedAttributes(brokerObjectName,
jolokiaAttributes).catch(e => {
// this is the best (as of Nov 2025) way to handle problems
when fetching attributes with RBAC enabled
eventService.notify({type: 'warning', message:
jolokiaService.errorMessage(e) })
return null
@@ -861,4 +872,4 @@ export function isValid(value: any): { valid: boolean,
message: string | null }
return { valid: true, message: null }
}
-export const artemisService = new ArtemisService()
\ No newline at end of file
+export const artemisService = new ArtemisService()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact