[
https://issues.apache.org/jira/browse/ARTEMIS-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15396997#comment-15396997
]
Lionel Cons commented on ARTEMIS-405:
-------------------------------------
The situation has improved a lot but I have tried the latest snapshot
(1.4.0-0.20160727.031210.23) and I still see a few {N/A}:
{code}
org.apache.activemq.artemis:brokerName=*,module=Core,name=*,serviceType=Address,type=Broker:
============================================================================================
Attributes:
Address java.lang.String [ro], "managed address"
AddressSize long [ro], "N/A"
BindingNames [Ljava.lang.String; [ro], "names of all
bindings (both queues and diverts) bound to this address"
NumberOfBytesPerPage long [ro], "number of bytes used by
each page for this address"
NumberOfMessages long [ro], "N/A"
NumberOfPages int [ro], "number of pages used by this
address"
Paging boolean [ro], "whether this address is
paging"
QueueNames [Ljava.lang.String; [ro], "names of the
queues bound to this address"
Roles [Ljava.lang.Object; [ro], "roles (name
and permissions) associated with this address"
RolesAsJSON java.lang.String [ro], "roles (name
and permissions) associated with this address using JSON serialization"
org.apache.activemq.artemis:brokerName=*,module=JMS,name=*,serviceType=Queue,type=Broker:
=========================================================================================
Attributes:
Address java.lang.String [ro], "the address
corresponding to this destination"
ConsumerCount int [ro], "number of consumers
consuming messages from this queue"
DeadLetterAddress java.lang.String [ro], "dead-letter
address associated with this queue"
DeliveringCount int [ro], "the number of messages that
this queue is currently delivering to its consumers"
ExpiryAddress java.lang.String [ro], "expiry address
associated with this queue"
FirstMessageAge java.lang.Long [ro], "age of the first
message in milliseconds"
FirstMessageAsJSON java.lang.String [ro], "first message
on the queue as JSON"
FirstMessageTimestamp java.lang.Long [ro], "timestamp of the
first message in milliseconds"
MessageCount long [ro], "the number of messages
currently in this destination"
MessagesAdded long [ro], "the number of messages
added to this queue since it was created"
MessagesExpired long [ro], "the number of messages
expired from this queue since it was created"
Name java.lang.String [ro], "the name of
this destination"
Paused boolean [ro], "N/A"
RegistryBindings [Ljava.lang.String; [ro], "N/A"
ScheduledCount long [ro], "number of scheduled
messages in this queue"
Selector java.lang.String [ro], "selector for
the queue"
Temporary boolean [ro], "whether this destination
is temporary"
org.apache.activemq.artemis:brokerName=*,module=JMS,name=*,serviceType=Topic,type=Broker:
=========================================================================================
Attributes:
Address java.lang.String [ro], "the address
corresponding to this destination"
DeliveringCount int [ro], "the number of messages that
this queue is currently delivering to its consumers"
DurableMessageCount int [ro], "number of messages for all
durable subscribers for this topic"
DurableSubscriptionCount int [ro], "number of durable
subscribers for this topic"
MessageCount long [ro], "the number of messages
currently in this destination"
MessagesAdded long [ro], "the number of messages
added to this queue since it was created"
Name java.lang.String [ro], "the name of
this destination"
NonDurableMessageCount int [ro], "number of messages for all
non-durable subscribers for this topic"
NonDurableSubscriptionCount int [ro], "number of non-durable
subscribers for this topic"
RegistryBindings [Ljava.lang.String; [ro], "N/A"
SubscriptionCount int [ro], "number of (durable and
non-durable) subscribers for this topic"
Temporary boolean [ro], "whether this destination
is temporary"
{code}
> JMX attributes should be documented
> -----------------------------------
>
> Key: ARTEMIS-405
> URL: https://issues.apache.org/jira/browse/ARTEMIS-405
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Affects Versions: 1.2.0
> Reporter: Lionel Cons
> Assignee: Justin Bertram
> Priority: Minor
> Fix For: 1.3.0, 1.4.0
>
>
> Using Jolokia, it is very easy to list all the attributes exposed by Artemis:
> {code}
> $ 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"
> [...]
> {code}
> As you see, the operations are documented but not the attributes. They should
> be.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)