-
Notifications
You must be signed in to change notification settings - Fork 940
ARTEMIS-5782 - improve control object filtering #6097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Also some perf tweaks added
384743a to
3581eda
Compare
3581eda to
f1cb1c8
Compare
| 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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); | ||
| } |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy & paste error here.
No description provided.