在 JADE 中的主容器中注册的代理的 IP 地址?

发布于 2024-08-23 14:35:12 字数 122 浏览 3 评论 0原文

我有一个网站,在该网站的后端运行着一个 JADE 主容器。多台机器可以向这个主容器注册。所以,我想知道JADE API是否支持获取当前在主容器中注册的所有代理的IP地址?我最终必须在网站上显示这些信息。

谢谢...

I have a website at the back end of which I have a JADE main container running. Multiple machines can register with this main container. So, I want to know if the JADE API supports getting the IP addresses of all the agents currently registered with the Main container? I have to eventually display this information on the website.

Thanks...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨轻弹 2024-08-30 14:35:12

您对 JADE API 的看法可能是正确的,但当然您始终可以使用标准 Java 来查找本地 IP 地址 - 尝试 InetAddress.getLocalHost()。当每个容器连接时从主容器推送的代理可以使用它来报告每个容器的IP地址,并且主容器中的代理可以订阅这些消息并将它们显示在网站上。 IIRC 您可以订阅 AMS,并在新容器上线时收到通知。

You're probably right about the JADE API, but of course you can always use standard Java to find the local IP address - try InetAddress.getLocalHost(). An Agent pushed from the Main Container when each container connects could use this to report the IP address of each container, and an Agent in the Main Container could subscribe to these messages and display them on the website. IIRC you can subscribe to the AMS and receive notification when new containers come online.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文