diff options
author | Robert Gemmell <robbie@apache.org> | 2012-02-16 11:52:52 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2012-02-16 11:52:52 +0000 |
commit | 2aebd69ca7084564c764d8c63ffc76be12d9181b (patch) | |
tree | ed35a78ded1eac229e8d2afca5ed31946988b58a | |
parent | 1c852f049a9b21ed0ef614f8481710f9071933ae (diff) | |
download | qpid-python-2aebd69ca7084564c764d8c63ffc76be12d9181b.tar.gz |
QPID-3845: Change impact attribute for ShutdownMBean to ACTION
Applied patch from Oleksandr Rudyy <orudyy@gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1244947 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/broker-plugins/experimental/shutdown/src/main/java/org/apache/qpid/shutdown/ShutdownMBean.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/java/broker-plugins/experimental/shutdown/src/main/java/org/apache/qpid/shutdown/ShutdownMBean.java b/java/broker-plugins/experimental/shutdown/src/main/java/org/apache/qpid/shutdown/ShutdownMBean.java index 48d2eab8df..5c54fb3e21 100644 --- a/java/broker-plugins/experimental/shutdown/src/main/java/org/apache/qpid/shutdown/ShutdownMBean.java +++ b/java/broker-plugins/experimental/shutdown/src/main/java/org/apache/qpid/shutdown/ShutdownMBean.java @@ -19,6 +19,8 @@ */ package org.apache.qpid.shutdown; +import javax.management.MBeanOperationInfo; + import org.apache.qpid.management.common.mbeans.annotations.MBeanOperation; import org.apache.qpid.management.common.mbeans.annotations.MBeanOperationParameter; @@ -34,7 +36,7 @@ public interface ShutdownMBean /** * Broker will be shut down immediately. */ - @MBeanOperation(name="shutdown", description="Shut down immediately") + @MBeanOperation(name="shutdown", description="Shut down immediately", impact = MBeanOperationInfo.ACTION) public void shutdown(); /** @@ -42,7 +44,7 @@ public interface ShutdownMBean * * @param delay the number of ms to wait */ - @MBeanOperation(name="shutdown", description="Shutdown after the specified delay (ms)") + @MBeanOperation(name="shutdown", description="Shutdown after the specified delay (ms)", impact = MBeanOperationInfo.ACTION) public void shutdown(@MBeanOperationParameter(name="when", description="delay (ms)")long delay); /** @@ -50,6 +52,6 @@ public interface ShutdownMBean * * @param when the date and time to shutdown */ - @MBeanOperation(name="shutdownAt", description="Shutdown at the specified date and time (yyyy/MM/dd HH:mm:ss)") + @MBeanOperation(name="shutdownAt", description="Shutdown at the specified date and time (yyyy/MM/dd HH:mm:ss)", impact = MBeanOperationInfo.ACTION) public void shutdownAt(@MBeanOperationParameter(name="when", description="shutdown date/time (yyyy/MM/dd HH:mm:ss)")String when); } |