您的位置:首页 > 其它

ActiveMQ_rest API 方式 reload 日志

2016-12-06 14:30 141 查看
注: (1)Mbean的属性:

  读取:baseURL/read/Mbean的全称/属性名称

  写入:baseURL/write/Mbean的全称/属性名称
    (2)Mbean的方法调用:
 
      baseURL/exec/Mbean的全称/方法名/参数1,参数2,参数3 

1.查看所有 queue 的 GET 方式 URL:

   http://localhost:8161/api/jolokia/read/org.apache.activemq:brokerName=localhost,type=Broker/Queues
    http://localhost:8161/api/jolokia/list
2.查看消息:
http://localhost:8161/api/jolokia/exec/org.apache.activemq:type=Broker,brokerName=localhost
,destinationType=Queue,destinationName=a/browse()/

3.从队列里删除一条 type 为 1 的消息:

  http://localhost:8161/api/jolokia/exec/org.apache.activemq:type=Broker,brokerName=localhost

,destinationType=Queue,destinationName=a/removeMatchingMessages(java.lang.String)/JMSType='1'

4.
reload 日志

http://localhost:8161/api/jolokia/exec/org.apache.activemq:type=Broker,brokerName=localhost/reloadLog4jProperties
 参考:Jolokia官方文档: http://www.jolokia.org/reference/html/protocol.html
 
           http://www.tuicool.com/articles/vmm2Ib
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: