WSO2:StatisticsClient [英] WSO2: StatisticsClient
问题描述
我如何使用Application Server的StatisticsAdmin
我的情况是:我想获取服务的响应时间,该服务部署在服务器(AppServer/DataServer ..)上,并由ESB使用治理注册表的Discoveryproxy进行探测.如果有可能如何实施呢?否则,我应该直接使用服务名称从AppServer获取服务响应时间.我可以使用此程序包和接口创建ServerAdminMBean的代理
My scenario is : i want to get responsetime of a service that deploy on a server(AppServer/DataServer..) and probed by ESB using discoveryproxy of governance regidtry. if is it possible how can i implement it? otherwise i should be get service response time from AppServer in direct using service name. i can create a proxy of ServerAdminMBean using this package and interface
import org.wso2.carbon.server.admin.service.ServerAdminMBean
但是我需要使用StatisticsAdmin类型的属性和方法.我该如何实施?
but i need to use attributes and method of StatisticsAdmin type. how can i implement it?
推荐答案
您可以使用JMX访问这些信息.可以使用StatisticAdmin MBena进行监视.您可以参考此以了解想法如何使用Java调用它们.
You can use JMX to access those information. There is StatisticAdmin MBena available for monitoring in . You can refer this to get an idea how to invoke them using Java.
这篇关于WSO2:StatisticsClient的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!