Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -861,4 +872,4 @@ export function isValid(value: any): { valid: boolean, message: string | null }
return { valid: true, message: null }
}

export const artemisService = new ArtemisService()
export const artemisService = new ArtemisService()