您好,登錄后才能下訂單哦!
【隊列狀態】
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 ***
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。