Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-405

JMX attributes should be documented

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0, 1.4.0
    • None
    • None

    Description

      Using Jolokia, it is very easy to list all the attributes exposed by Artemis:

      $ jmx4perl http://localhost:8161/jolokia/ list 'org.apache.activemq.artemis:brokerName="0.0.0.0",module=JMS,name="DLQ",serviceType=Queue,type=Broker' 
      org.apache.activemq.artemis:brokerName="0.0.0.0",module=JMS,name="DLQ",serviceType=Queue,type=Broker: 
      ===================================================================================================== 
      
      Attributes: 
          Name                                java.lang.String [ro], "Attribute exposed for management" 
          ExpiryAddress                       java.lang.String [ro], "Attribute exposed for management" 
          RegistryBindings                    [Ljava.lang.String; [ro], "Attribute exposed for management" 
          DeliveringCount                     int [ro], "Attribute exposed for management" 
          Address                             java.lang.String [ro], "Attribute exposed for management" 
          Selector                            java.lang.String [ro], "Attribute exposed for management" 
          ScheduledCount                      long [ro], "Attribute exposed for management" 
          MessageCount                        long [ro], "Attribute exposed for management" 
          Paused                              boolean [ro], "Attribute exposed for management" 
          DeadLetterAddress                   java.lang.String [ro], "Attribute exposed for management" 
          FirstMessageTimestamp               java.lang.Long [ro], "Attribute exposed for management" 
          ConsumerCount                       int [ro], "Attribute exposed for management" 
          MessagesAdded                       long [ro], "Attribute exposed for management" 
          FirstMessageAge                     java.lang.Long [ro], "Attribute exposed for management" 
          Temporary                           boolean [ro], "Attribute exposed for management" 
          FirstMessageAsJSON                  java.lang.String [ro], "Attribute exposed for management" 
      Operations: 
          int retryMessages()                 "Retry all messages on a DLQ to their respective original queues" 
          java.lang.String listMessageCounterHistory() "List the message counters history" 
          java.lang.String listMessageCounterHistoryAsHTML() "List the message counters history as HTML" 
          java.util.Map listDeliveringMessages() "List all messages being delivered per consumer" 
      [...] 
      

      As you see, the operations are documented but not the attributes. They should be.

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              lionel.cons Lionel Cons
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: