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
读取: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
相关文章推荐
- rest api方式实现对文档库的管理
- Python调用REST API接口的几种方式 推荐
- 一个API方式存取日志文件的模块
- 19.ELK实时日志分析平台之Elasticsearch REST API简介
- kafka rest api方式写入——java程序
- Redmine之RestApi集成方式
- Azure Mobile Services的REST API调用方式和自定义API
- Confluence集成实践:3:RestAPI集成方式
- ActiveMQ与REST API实践
- 百度语音识别REST API——通过使用Http网络请求方式获得语音识别功能
- 百度语音识别REST API——通过使用Http网络请求方式获得语音识别功能
- jira rest api方式创建bug并且提交附件
- 用"C原生API"写Symbian日志文件
- 用"C原生API"写Symbian日志文件
- C# API方式串口读写
- 用"C原生API"写Symbian日志文件
- 应用程序接口有两种方式--API和协议
- 使用 IBM OmniFind Yahoo! Edition REST API
- 用"C原生API"写Symbian日志文件
- 用"C原生API"写Symbian日志文件