摘要:建站服务器 【队列状态】1、直接网页查看:http://127.0.0.1:8161/admin/queues.jsp 2、curl(Queue Size with STOMP)curl -u admin:admin ht
建站服务器
【队列状态】
1、直接网页查看:http://127.0.0.1:8161/admin/queues.jsp
2、curl(Queue Size with STOMP)
curl -u admin:admin http://127.0.0.1:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=QueueName
3、Apache ActiveMQ > Connectivity > Protocols > REST
4、python + requests 查看
#encoding: utf-8 #author: walker #date: 2017-09-20 #summary: 查看 ActiveMQ 某个队列信息 import sys import json import requests from requests.auth import HTTPBasicAuth from pprint import pprint # 查看 ActiveMQ 某个队列信息 def DisplayQueueInfo(queueName): username = \'admin\' password = \'admin\' url = \'http://127.0.0.1:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=\' + queueName r = requests.get(url, auth=HTTPBasicAuth(username, password)) print(\'%s:\' % queueName) pprint(json.loads(r.text))
*** walker ***
相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28