You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "andytaylor (via GitHub)" <gi...@apache.org> on 2025/12/03 11:24:15 UTC

[PR] ARTEMIS-5782 - improve control object filtering [activemq-artemis]

andytaylor opened a new pull request, #6097:
URL: https://github.com/apache/activemq-artemis/pull/6097

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [PR] ARTEMIS-5782 - improve control object filtering [activemq-artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6097:
URL: https://github.com/apache/activemq-artemis/pull/6097#discussion_r2585831426


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/ManagementService.java:
##########
@@ -159,4 +162,7 @@ void registerBroadcastGroup(BroadcastGroup broadcastGroup,
 
    Object invokeOperation(String resourceName, String operation, Object[] params, SecurityAuth auth) throws Exception;
 
+   List<QueueControl> getQueueControls(Predicate<QueueControl> predicate);

Review Comment:
   Consider adding:
   ```java
   List<QueueControl> getQueueControls();
   ```
   That way folks wouldn't have to pass `null` to get all the controls. Passing `null` isn't intuitive.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [PR] ARTEMIS-5782 - improve control object filtering [activemq-artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6097:
URL: https://github.com/apache/activemq-artemis/pull/6097#discussion_r2585832419


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/ManagementService.java:
##########
@@ -159,4 +162,7 @@ void registerBroadcastGroup(BroadcastGroup broadcastGroup,
 
    Object invokeOperation(String resourceName, String operation, Object[] params, SecurityAuth auth) throws Exception;
 
+   List<QueueControl> getQueueControls(Predicate<QueueControl> predicate);
+
+   List<AddressControl> getAddressControls(Predicate<AddressControl> predicate);
 }

Review Comment:
   Same suggestion as above.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [PR] ARTEMIS-5782 - improve control object filtering [activemq-artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6097:
URL: https://github.com/apache/activemq-artemis/pull/6097#discussion_r2585825920


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java:
##########
@@ -300,6 +311,7 @@ public void registerAddressMeters(AddressInfo addressInfo, AddressControl addres
    public void unregisterAddress(final SimpleString address) throws Exception {
       unregisterFromJMX(objectNameBuilder.getAddressObjectName(address));
       unregisterFromRegistry(ResourceNames.ADDRESS + address);
+      unregisterAddressControls(ResourceNames.ADDRESS + address);

Review Comment:
   This should replace the call to `unregisterFromRegistry`, no?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [PR] ARTEMIS-5782 - improve control object filtering [activemq-artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6097:
URL: https://github.com/apache/activemq-artemis/pull/6097#discussion_r2585823760


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java:
##########
@@ -277,6 +287,7 @@ public void registerAddress(AddressInfo addressInfo) throws Exception {
       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);

Review Comment:
   This should replace the call to `registerInRegistry`, no?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [PR] ARTEMIS-5782 - improve control object filtering [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6097:
URL: https://github.com/apache/artemis/pull/6097#issuecomment-3877862940

   Check out #6226. I think it could replace this PR (assuming you approve).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5782 - improve control object filtering [artemis]

Posted by "andytaylor (via GitHub)" <gi...@apache.org>.
andytaylor commented on PR #6097:
URL: https://github.com/apache/artemis/pull/6097#issuecomment-3885396110

   Yes Im happy with that, I will close this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5782 - improve control object filtering [activemq-artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6097:
URL: https://github.com/apache/activemq-artemis/pull/6097#discussion_r2585839421


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/management/impl/ManagementServiceImpl.java:
##########
@@ -134,6 +136,12 @@ public class ManagementServiceImpl implements ManagementService {
 
    private final Map<String, Object> registry;
 
+   // 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

Review Comment:
   Copy & paste error here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [PR] ARTEMIS-5782 - improve control object filtering [artemis]

Posted by "andytaylor (via GitHub)" <gi...@apache.org>.
andytaylor closed pull request #6097: ARTEMIS-5782 - improve control object filtering
URL: https://github.com/apache/artemis/pull/6097


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org