diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ActiveMQServerControl.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ActiveMQServerControl.java index 4e4fc95c59..e6fe7f58af 100644 --- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ActiveMQServerControl.java +++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/ActiveMQServerControl.java @@ -772,6 +772,24 @@ public interface ActiveMQServerControl { @Operation(desc = "Closes all the connections for sessions with the given user name", impact = MBeanOperationInfo.INFO) boolean closeConnectionsForUser(@Parameter(desc = "a user name", name = "userName") String address) throws Exception; + /** + * Closes the connection with the given id. + */ + @Operation(desc = "Closes all the connection with the id", impact = MBeanOperationInfo.INFO) + boolean closeConnectionWithID(@Parameter(desc = "The connection ID", name = "ID") String ID) throws Exception; + + /** + * Closes the session with the given id. + */ + @Operation(desc = "Closes the session with the id", impact = MBeanOperationInfo.INFO) + boolean closeSessionWithID(String connectionID, String ID) throws Exception; + + /** + * Closes the consumer with the given id. + */ + @Operation(desc = "Closes the consumer with the id", impact = MBeanOperationInfo.INFO) + boolean closeConsumerWithID(String sessionID, String ID) throws Exception; + /** * Lists all the IDs of the connections connected to this server. */ diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/connections.html b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/connections.html index c844ab86eb..9b3b231b80 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/connections.html +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/html/connections.html @@ -42,10 +42,29 @@ + +
You are about to close the selected connection: {{gridOptions.selectedItems[0].connectionID}} +
+Are you sure you want to continue.
+You are about to close the selected consumer: {{gridOptions.selectedItems[0].id}} +
+Are you sure you want to continue.
+You are about to close the selected session: {{gridOptions.selectedItems[0].id}} +
+Are you sure you want to continue.
+