Skip to content

Conversation

@andytaylor
Copy link
Contributor

No description provided.

@andytaylor andytaylor force-pushed the controlsort branch 3 times, most recently from 3581eda to f1cb1c8 Compare December 3, 2025 16:19
AddressControlImpl addressControl = new AddressControlImpl(addressInfo, messagingServer, pagingManager, storageManager, securityRepository, securityStore, this);
registerInJMX(objectNameBuilder.getAddressObjectName(addressInfo.getName()), addressControl);
registerInRegistry(ResourceNames.ADDRESS + addressInfo.getName(), addressControl);
registerAddressControls(ResourceNames.ADDRESS + addressInfo.getName(), addressControl);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should replace the call to registerInRegistry, no?

public void unregisterAddress(final SimpleString address) throws Exception {
unregisterFromJMX(objectNameBuilder.getAddressObjectName(address));
unregisterFromRegistry(ResourceNames.ADDRESS + address);
unregisterAddressControls(ResourceNames.ADDRESS + address);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should replace the call to unregisterFromRegistry, no?


Object invokeOperation(String resourceName, String operation, Object[] params, SecurityAuth auth) throws Exception;

List<QueueControl> getQueueControls(Predicate<QueueControl> predicate);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding:

List<QueueControl> getQueueControls();

That way folks wouldn't have to pass null to get all the controls. Passing null isn't intuitive.

List<QueueControl> getQueueControls(Predicate<QueueControl> predicate);

List<AddressControl> getAddressControls(Predicate<AddressControl> predicate);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion as above.

// we keep a second map just for queues for quick searching when many exist
private final Map<String, QueueControl> queueControls;

// we keep a second map just for queues for quick searching when many exist
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy & paste error here.

@andytaylor andytaylor force-pushed the controlsort branch 2 times, most recently from c473c73 to 14c9f91 Compare December 10, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants