activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martyntay...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-405 more docs for JMS destinations
Date Thu, 21 Jul 2016 15:59:01 GMT
ARTEMIS-405 more docs for JMS destinations


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/27ef1b2b
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/27ef1b2b
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/27ef1b2b

Branch: refs/heads/master
Commit: 27ef1b2bf092e953ee49eac7e99e3cfb7b72d898
Parents: cfaaba4
Author: jbertram <jbertram@apache.org>
Authored: Wed Jul 20 16:44:00 2016 -0500
Committer: Martyn Taylor <mtaylor@redhat.com>
Committed: Thu Jul 21 16:58:41 2016 +0100

----------------------------------------------------------------------
 .../artemis/api/jms/management/DestinationControl.java      | 9 ++++++++-
 .../artemis/jms/management/impl/JMSTopicControlImpl.java    | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/27ef1b2b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/DestinationControl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/DestinationControl.java
b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/DestinationControl.java
index 678fb21..afd07ca 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/DestinationControl.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/DestinationControl.java
@@ -18,6 +18,7 @@ package org.apache.activemq.artemis.api.jms.management;
 
 import javax.management.MBeanOperationInfo;
 
+import org.apache.activemq.artemis.api.core.management.Attribute;
 import org.apache.activemq.artemis.api.core.management.Operation;
 import org.apache.activemq.artemis.api.core.management.Parameter;
 
@@ -30,31 +31,37 @@ public interface DestinationControl {
    /**
     * Returns the name of this destination.
     */
+   @Attribute(desc = "the name of this destination")
    String getName();
 
    /**
-    * Returns the ActiveMQ Artemis address corresponding to this destination.
+    * Returns the address corresponding to this destination.
     */
+   @Attribute(desc = "the address corresponding to this destination")
    String getAddress();
 
    /**
     * Returns whether this destination is temporary.
     */
+   @Attribute(desc = "whether this destination is temporary")
    boolean isTemporary();
 
    /**
     * Returns the number of messages currently in this destination.
     */
+   @Attribute(desc = "the number of messages currently in this destination")
    long getMessageCount() throws Exception;
 
    /**
     * Returns the number of messages that this queue is currently delivering to its consumers.
     */
+   @Attribute(desc = "the number of messages that this queue is currently delivering to its
consumers")
    int getDeliveringCount();
 
    /**
     * Returns the number of messages added to this queue since it was created.
     */
+   @Attribute(desc = "the number of messages added to this queue since it was created")
    long getMessagesAdded();
 
    // Operations ----------------------------------------------------

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/27ef1b2b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
index 63d3d45..5a0842d 100644
--- a/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
+++ b/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/management/impl/JMSTopicControlImpl.java
@@ -365,7 +365,7 @@ public class JMSTopicControlImpl extends StandardMBean implements TopicControl
{
    @Override
    public MBeanInfo getMBeanInfo() {
       MBeanInfo info = super.getMBeanInfo();
-      return new MBeanInfo(info.getClassName(), info.getDescription(), info.getAttributes(),
info.getConstructors(), MBeanInfoHelper.getMBeanOperationsInfo(TopicControl.class), info.getNotifications());
+      return new MBeanInfo(info.getClassName(), info.getDescription(), MBeanInfoHelper.getMBeanAttributesInfo(TopicControl.class),
info.getConstructors(), MBeanInfoHelper.getMBeanOperationsInfo(TopicControl.class), info.getNotifications());
    }
 
    // Inner classes -------------------------------------------------


Mime
View raw message