搜索

此内容没有您所选择的语言版本。

3.5. activemq:query, query

download PDF

Abstract

queries the for broker information on specific objects

Synopsis

activemq:query [ -QMBeanType=name ] [ -xQMBeanType=name ] [ --objname query ] [ --xobjname query ] [ --view { attr ...} ] [ --jmxurl JMXUrl ] [ --pid PID ] [ -jmxuser userName ] [ -jmxpassword password ] [ -jmxlocal ] [ --version ] [[ --help ] | [ -h ] | [ -? ]]

Arguments

Table 3.6, “activemq:query Arguments” describes the command's arguments.
Table 3.6. activemq:query Arguments
ArgumentInterpretation
-Q type=nameAdds to the search list the specific object type matched by the defined object identifier.
-xQ type=nameRemoves from the search list the specific object type matched by the object identifier.
--objname queryAdds to the search list objects matched by the query similar.
--xobjname queryRemoves from the search list objects matched by the query.
--view attr1,attr2,...Selects the specific attribute of the object to view. By default, all attributes are displayed.
--jmxurl URLSets the JMX URL to connect to.
--pid PID Set the pid to connect to (only on Sun JVM).
--jmxuser user Sets the JMX user, used for authentication
--jmxpassword password Sets the JMX password, used for authentication
--jmxlocal Specifies to use the local JMX server instead of a remote server
--version Displays the version information
-h, -?, --help Displays the online help for this command

Examples

The following command displays all attributes and object name information for all registered MBeans in the default JMX context:
JBossA-MQ:karaf@root>activemq:query
The following command displays all attributes and object name information of the destination topic TEST.FOO:
JBossA-MQ:karaf@root>activemq:query -QTopic=TEST.FOO
The following command displays all the brokers in a context whose name ends in host:
JBossA-MQ:karaf@root>activemq:query -QBroker=*host
the Following command displays all attributes and object name information for all registered queues:
JBossA-MQ:karaf@root>activemq:query -QQueue=*
The following command displays all attributes and object name information for all topics ending with .FOO except those that also begin with ActiveMQ.Advisory.:
JBossA-MQ:karaf@root>activemq:query -QTopic=*.FOO -xQTopic=ActiveMQ.Advisory.*
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.