[英]JMS library to get memory usage and disk space on a remote server?
I'm trying to put together a JMS queues dashboard for some JCAPS interfaces, is there any Java method provided in JMS packages that I could use to retrieve server's status such as memory usage and disk space? 我正在尝试为某些JCAPS接口组合一个JMS队列仪表板,JMS包中是否提供了可用来检索服务器状态(例如内存使用率和磁盘空间)的Java方法?
Thanks in advance!! 提前致谢!!
It depends. 这取决于。 If you're using JCAPS 5, sorry you're probably out of luck I don't know how to build an API against the underlying STCMS brokers and there are probably very few people who can help you with said task.
如果您使用的是JCAPS 5,对不起,您可能不走运,我不知道如何针对底层STCMS代理构建API,并且可能很少有人可以帮助您完成上述任务。
If, however, you are using JCAPS 6 which is JMS based (JCAPS 5 may be too, but I can't remember) then you are in luck - I have built such a thing. 但是,如果您使用的是基于JMS的JCAPS 6(JCAPS 5可能也是,但我不记得了),那么您很幸运-我构建了这样的东西。
Basically, you need a few of the jars from your JMS broker: 基本上,您需要一些来自JMS代理的jar:
root@servername /opt/foo/mq42/lib [bash]# ls
ext images imqbroker.jar imqinit imqservlet.jar jaxm-api.jar props
fscontext.jar imq.jar imqhttp.war imqjmsra.rar imqutil.jar jhall.jar
help imqadmin.jar imqhttps.war imqjmx.jar imqxm.jar jms.jar
You need: 你需要:
From here I can only be somewhat vague as the rest is IP and not open source. 从这里开始,我只能说得有些模糊,因为其余的是IP而不是开源的。 Basically, look in to the scripts that are underneath the mq42 folder, they'll give you hints on how to use the jars.
基本上,请查看mq42文件夹下面的脚本,它们将为您提供有关如何使用jar的提示。 The main class that you'll use is:
com.sun.messaging.jmq.admin.bkrutil.BrokerAdmin
您将使用的主要类是:
com.sun.messaging.jmq.admin.bkrutil.BrokerAdmin
Best of luck! 祝你好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.