我正在寻找一种方法来列出所有声明的交换,使用Java代码在rabbitmq中排队.我知道命令"rabbitmqctl list_queues"我也知道"rabbitmqadmin list queues"
您可以使用HTTP API.
安装Web管理插件:
rabbitmq-plugins enable rabbitmq_management
Run Code Online (Sandbox Code Playgroud)
然后使用API获取信息:
http://localhost:15672/api/exchanges
http://localhost:15672/api/queues
Run Code Online (Sandbox Code Playgroud)
完整的API列表可用于:
http://localhost:15672/api/
Run Code Online (Sandbox Code Playgroud)
只需执行java http请求并获取json结果.
归档时间: |
|
查看次数: |
4339 次 |
最近记录: |